Skip to content

Commit 1833e00

Browse files
committed
fix type checking
1 parent c295b26 commit 1833e00

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import * as csstree from 'css-tree'
22

33
/**
44
* Get the parent Atrule for `childNode`
5-
* @param {CssNode} ast The full CSS AST to traverse again top-down
6-
* @param {Atrule} childNode The Atrule we want to get the potential parent Atrule for
5+
* @param {import('css-tree').CssNode} ast The AST to search in
6+
* @param {import('css-tree').Atrule} childNode The Atrule we want to get the potential parent Atrule for
77
*/
88
function get_parent_rule(ast, childNode) {
99
let parent

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"lib": ["ES2022", "DOM", "DOM.Iterable"],
2323
},
2424
"include": [
25-
"index.js"
25+
"src/",
26+
"test/"
2627
],
2728
"exclude": ["node_modules"]
2829
}

0 commit comments

Comments
 (0)