Skip to content

Commit b40d245

Browse files
authored
Add missing type export declaration (#11)
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.
1 parent 8146e56 commit b40d245

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"source": "src/index.ts",
1818
"exports": {
1919
"require": "./dist/index.cjs",
20-
"default": "./dist/index.esm.js"
20+
"default": "./dist/index.esm.js",
21+
"types": "./dist/index.d.ts"
2122
},
2223
"types": "./dist/index.d.ts",
2324
"main": "./dist/index.cjs",
@@ -62,4 +63,4 @@
6263
"update",
6364
"change"
6465
]
65-
}
66+
}

0 commit comments

Comments
 (0)