Skip to content

Commit 8a350aa

Browse files
Exports types for ESM module usage
Added types to package json exports so that ESM projects get correct types
1 parent f15d211 commit 8a350aa

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
".": {
2727
"require": "./dist/index.js",
2828
"import": "./dist/react-use-intercom.esm.js",
29-
"browser": "./dist/react-use-intercom.esm.js"
29+
"browser": "./dist/react-use-intercom.esm.js",
30+
"types": "./dist/index.d.ts"
3031
}
3132
},
3233
"keywords": [

0 commit comments

Comments
 (0)