Skip to content

Commit f6a6a87

Browse files
authored
Restore types package export (#14)
Removed in 05c261f#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519L31 Fixes typescript error > error TS7016: Could not find a declaration file for module '@discoveryjs/json-ext'. '.../node_modules/@discoveryjs/json-ext/src/index.js' implicitly has an 'any' type. > There are types at '.../node_modules/@discoveryjs/json-ext/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@discoveryjs/json-ext' library may need to update its package.json or typings.
1 parent 6614e75 commit f6a6a87

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
@@ -27,7 +27,8 @@
2727
"exports": {
2828
".": {
2929
"require": "./cjs/index.cjs",
30-
"import": "./src/index.js"
30+
"import": "./src/index.js",
31+
"types": "./index.d.ts"
3132
},
3233
"./dist/*": "./dist/*",
3334
"./package.json": "./package.json"

0 commit comments

Comments
 (0)