Skip to content

Commit

Permalink
fix: define types in exports (#179)
Browse files Browse the repository at this point in the history
If the user use the ts and set `moduleResolution: nodenext` of `tsconfig.json`, this type will not be available.
  • Loading branch information
NWYLZW committed Dec 4, 2023
1 parent ebb6f90 commit ae5af26
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
],
"exports": {
".": {
"types": "./src/index.d.ts",
"import": "./src/index.js",
"require": "./lib/index.cjs"
}
Expand Down

0 comments on commit ae5af26

Please sign in to comment.