Skip to content

Commit e767426

Browse files
Ked57Clément Fassot
and
Clément Fassot
authored
fix: typescript declaration for type module (#28)
Co-authored-by: Clément Fassot <[email protected]>
1 parent 2de8d37 commit e767426

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

package.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,14 @@
1616
},
1717
"exports": {
1818
".": {
19-
"import": "./dist/index.es.js",
20-
"require": "./dist/index.umd.js"
19+
"import": {
20+
"default": "./dist/index.es.js",
21+
"types": "./dist/index.d.ts"
22+
},
23+
"require": {
24+
"default": "./dist/index.umd.js",
25+
"types": "./dist/index.d.ts"
26+
}
2127
}
2228
},
2329
"scripts": {

0 commit comments

Comments
 (0)