Commit 07acadd
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 because we want to keep this module ambient in order for the to apply globally across all imports of .
By importing the type inside the ambient module context, we preserve the ambient-ness of the file.
https://www.typescriptlang.org/docs/handbook/modules/reference.html#ambient-modules
fix1 parent ee81f76 commit 07acadd
File tree
4 files changed
+19
-10
lines changed- .changeset
- packages/enhanced-img
- types
4 files changed
+19
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | 40 | | |
42 | | - | |
43 | 41 | | |
44 | 42 | | |
45 | 43 | | |
46 | 44 | | |
47 | 45 | | |
48 | 46 | | |
49 | 47 | | |
| 48 | + | |
50 | 49 | | |
| 50 | + | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
52 | 56 | | |
53 | 57 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
| 2 | + | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments