Commit 2edd979
committed
Do not use
First-party type declarations should simply be provided at top level
in .d.ts files with the right filenames.
The `declare module` was breaking usage like `import
"handlebars/runtime.js"` (which happens to be the only way to import
the runtime from a project with native ES modules, "type": "module").
Signed-off-by: Anders Kaseorg <andersk@mit.edu>declare module in first-party type declarations1 parent e914d60 commit 2edd979
2 files changed
+3
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
| 416 | + | |
0 commit comments