Commit 4455725
committed
fix(enhanced-img): ensure ambient modules use ambient imports
Top-level imports and exports automatically upgrade a TypeScript file to
the module context. This is not desired in `ambient.d.ts` because we
want to keep this module ambient in order for the `declare module` to
apply globally across all imports of `*?enhanced`.
By importing the `Picture` type inside the ambient module context, we
preserve the "ambient-ness" of the `ambient.d.ts` file.
https://www.typescriptlang.org/docs/handbook/modules/reference.html#ambient-modules1 parent ee81f76 commit 4455725
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
| 2 | + | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
0 commit comments