Skip to content

Commit 287cfc3

Browse files
authored
Update package.json
added line "types": "./lib/index.d.ts" in exports : { "." : { ... to typescript knowns where the types are whe you exports the module.
1 parent 4fc207e commit 287cfc3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
".": {
1010
"import": "./lib/index.mjs",
1111
"require": "./lib/index.js",
12-
"default": "./lib/index.mjs"
12+
"default": "./lib/index.mjs",
13+
"types": "./lib/index.d.ts"
1314
},
1415
"./global": "./lib/index.global.js"
1516
},

0 commit comments

Comments
 (0)