Skip to content

Commit

Permalink
fix: export type definitions for ts > 4.7 (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-sharif authored Jan 9, 2025
1 parent 5a7e79f commit 961b8ca
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,18 @@
"mongodb-resumetoken-decoder": "bin/mongodb-resumetoken-decoder.js"
},
"exports": {
"require": "./lib/index.js",
"import": "./.esm-wrapper.mjs"
".": {
"import": {
"types": "./lib/index.d.ts",
"default": "./.esm-wrapper.mjs"
},
"require": {
"types": "./lib/index.d.ts",
"default": "./lib/index.js"
}
}
},
"types": "./lib/index.d.ts",
"files": [
"LICENSE-Community.txt",
"bin",
Expand Down

0 comments on commit 961b8ca

Please sign in to comment.