Types not supported Node16+ module resolution
Closed this issue ยท 1 comments
ryangoree commented
The type definitions in the build use relative import paths that don't include the extensions. This means projects using Node16
or NodeNext
moduleResolution
in their typescript projects won't be able to resolve the types.
- https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-7.html
- https://nodejs.org/api/esm.html#mandatory-file-extensions
bpierre commented
Done in 55ae306
The types are now bundled in a single file: https://unpkg.com/browse/dnum@2.10.0/dist/index.d.ts
@ryangoree ๐