Skip to content

Commit

Permalink
Add missing type export declaration (#11)
Browse files Browse the repository at this point in the history
This will allow people to use this package together with the new
moduleResolution: "bundler" option enabled, which was added
in TypeScript 5.0.

Otherwise type declarations are entirely missing.
  • Loading branch information
saibotk authored Mar 20, 2023
1 parent 8146e56 commit b40d245
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"source": "src/index.ts",
"exports": {
"require": "./dist/index.cjs",
"default": "./dist/index.esm.js"
"default": "./dist/index.esm.js",
"types": "./dist/index.d.ts"
},
"types": "./dist/index.d.ts",
"main": "./dist/index.cjs",
Expand Down Expand Up @@ -62,4 +63,4 @@
"update",
"change"
]
}
}

0 comments on commit b40d245

Please sign in to comment.