Skip to content

Commit cbb8c0c

Browse files
committed
Indicate types declaration file in package.json
As per the TS docs [0] the main declaration file should be indicated in package.json. Without it TS is unable to provide types for the package. [0]: https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html
1 parent c59895f commit cbb8c0c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"module": "dist/imagekit.esm.js",
77
"browser": "dist/imagekit.min.js",
88
"unpkg": "dist/imagekit.min.js",
9+
"types": "dist/src/index.d.ts",
910
"files": [
1011
"dist",
1112
"src"

0 commit comments

Comments
 (0)