Skip to content

Commit

Permalink
Update @types/hast, utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Aug 2, 2023
1 parent 145215b commit bf36a3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
9 changes: 2 additions & 7 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
/**
* @typedef {import('hast').Root} Root
* @typedef {import('hast').Content} Content
*/

/**
* @typedef {Root | Content} Node
* @typedef {import('hast').Nodes} Nodes
*/

// To do next major: return `undefined`.
/**
* Get the rank (`1` to `6`) of headings (`h1` to `h6`).
*
* @param {Node} node
* @param {Nodes} node
* Node to check.
* @returns {number | null}
* Rank of the heading or `null` if not a heading.
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@
"index.js"
],
"dependencies": {
"@types/hast": "^2.0.0"
"@types/hast": "^3.0.0"
},
"devDependencies": {
"@types/node": "^20.0.0",
"c8": "^8.0.0",
"hastscript": "^7.0.0",
"hastscript": "^8.0.0",
"prettier": "^3.0.0",
"remark-cli": "^11.0.0",
"remark-preset-wooorm": "^9.0.0",
Expand Down

0 comments on commit bf36a3f

Please sign in to comment.