Skip to content

Commit 5eda782

Browse files
Martin Badinmartin-badin
Martin Badin
authored andcommitted
feat: add types to package.json
fix htmlhint#633
1 parent b8f685b commit 5eda782

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
},
1919
"license": "MIT",
2020
"main": "dist/htmlhint.js",
21+
"types": "dist/core/core.d.ts",
2122
"module": "dist/core/core.js",
2223
"bin": {
2324
"htmlhint": "./bin/htmlhint"

src/core/core.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,4 +162,4 @@ Object.keys(HTMLRules).forEach((key) => {
162162
HTMLHint.addRule(HTMLRules[key])
163163
})
164164

165-
export { HTMLRules, Reporter, HTMLParser }
165+
export { HTMLRules, Reporter, HTMLParser, Hint, Rule, Ruleset }

tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"rootDir": "src",
99
"outDir": "dist",
1010
"strict": true,
11-
"removeComments": true
11+
"removeComments": true,
12+
"declaration": true
1213
},
1314
"include": ["src"],
1415
"exclude": ["node_modules"]

0 commit comments

Comments
 (0)