Skip to content

Commit ce11f0f

Browse files
committed
add types
1 parent 748c6ec commit ce11f0f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"name": "validate-html-nesting",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Validate parent-child nesting for HTML elements",
55
"main": "src/index.js",
6+
"types": "./src/types.d.ts",
67
"scripts": {
78
"test": "jest"
89
},

src/types.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
declare function isValidHTMLNesting(parentTag: string, childTag: string): boolean;

0 commit comments

Comments
 (0)