Skip to content

Commit

Permalink
Add "types" to "exports" (#1704)
Browse files Browse the repository at this point in the history
For TypeScript compatibility with future esm support.
  • Loading branch information
ChocolateLoverRaj authored Mar 18, 2022
1 parent 5bddedf commit 8cbd082
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 @@ -39,6 +39,7 @@
"main": "./index.js",
"exports": {
".": {
"types": "./typings/index.d.ts",
"require": "./index.js",
"import": "./esm.mjs"
},
Expand Down

0 comments on commit 8cbd082

Please sign in to comment.