Skip to content

Commit 98cce12

Browse files
authored
add types entry
1 parent b34f32d commit 98cce12

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,17 @@
77
"umd:main": "dist/index.js",
88
"module": "dist/index.module.js",
99
"jsnext:main": "dist/index.module.js",
10+
"typings": "src/index.d.ts",
11+
"types": "src/index.d.ts",
1012
"exports": {
1113
".": {
14+
"types": "./src/index.d.ts",
1215
"import": "./dist/index.mjs",
1316
"browser": "./dist/index.module.js",
1417
"require": "./dist/index.js"
1518
},
1619
"./jsx": {
20+
"types": "./jsx.d.ts",
1721
"import": "./dist/jsx.mjs",
1822
"browser": "./dist/jsx.module.js",
1923
"require": "./dist/jsx.js"
@@ -91,7 +95,6 @@
9195
},
9296
"author": "Jason Miller <jason@developit.ca>",
9397
"license": "MIT",
94-
"typings": "src/index.d.ts",
9598
"repository": "developit/preact-render-to-string",
9699
"bugs": "https://github.com/developit/preact-render-to-string/issues",
97100
"homepage": "https://github.com/developit/preact-render-to-string",

0 commit comments

Comments
 (0)