Skip to content

Commit

Permalink
feat: add types to package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Badin authored and martin-badin committed Jan 14, 2022
1 parent b8f685b commit 5eda782
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
},
"license": "MIT",
"main": "dist/htmlhint.js",
"types": "dist/core/core.d.ts",
"module": "dist/core/core.js",
"bin": {
"htmlhint": "./bin/htmlhint"
Expand Down
2 changes: 1 addition & 1 deletion src/core/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,4 @@ Object.keys(HTMLRules).forEach((key) => {
HTMLHint.addRule(HTMLRules[key])
})

export { HTMLRules, Reporter, HTMLParser }
export { HTMLRules, Reporter, HTMLParser, Hint, Rule, Ruleset }
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"rootDir": "src",
"outDir": "dist",
"strict": true,
"removeComments": true
"removeComments": true,
"declaration": true
},
"include": ["src"],
"exclude": ["node_modules"]
Expand Down

0 comments on commit 5eda782

Please sign in to comment.