Skip to content

Commit

Permalink
fix type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
bartveneman committed Nov 10, 2024
1 parent c295b26 commit 1833e00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import * as csstree from 'css-tree'

/**
* Get the parent Atrule for `childNode`
* @param {CssNode} ast The full CSS AST to traverse again top-down
* @param {Atrule} childNode The Atrule we want to get the potential parent Atrule for
* @param {import('css-tree').CssNode} ast The AST to search in
* @param {import('css-tree').Atrule} childNode The Atrule we want to get the potential parent Atrule for
*/
function get_parent_rule(ast, childNode) {
let parent
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"lib": ["ES2022", "DOM", "DOM.Iterable"],
},
"include": [
"index.js"
"src/",
"test/"
],
"exclude": ["node_modules"]
}

0 comments on commit 1833e00

Please sign in to comment.