Skip to content

Commit 791b082

Browse files
authored
Remove redundant types (#268)
The `types` field here only serves to "confuse" TS in the CJS case, and it's redundant for the ESM case. By removing it, we allow TS to correctly infer the types for both CJS and ESM since the respective typings are colocated with their entrypoints.
1 parent d3227ae commit 791b082

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
],
2626
"exports": {
2727
".": {
28-
"types": "./build/esm/index.d.ts",
2928
"import": "./build/esm/index.js",
3029
"require": "./build/cjs/index.js"
3130
}

0 commit comments

Comments
 (0)