Skip to content

Commit bf36a3f

Browse files
committed
Update @types/hast, utilities
1 parent 145215b commit bf36a3f

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

lib/index.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
/**
2-
* @typedef {import('hast').Root} Root
3-
* @typedef {import('hast').Content} Content
4-
*/
5-
6-
/**
7-
* @typedef {Root | Content} Node
2+
* @typedef {import('hast').Nodes} Nodes
83
*/
94

105
// To do next major: return `undefined`.
116
/**
127
* Get the rank (`1` to `6`) of headings (`h1` to `h6`).
138
*
14-
* @param {Node} node
9+
* @param {Nodes} node
1510
* Node to check.
1611
* @returns {number | null}
1712
* Rank of the heading or `null` if not a heading.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@
3535
"index.js"
3636
],
3737
"dependencies": {
38-
"@types/hast": "^2.0.0"
38+
"@types/hast": "^3.0.0"
3939
},
4040
"devDependencies": {
4141
"@types/node": "^20.0.0",
4242
"c8": "^8.0.0",
43-
"hastscript": "^7.0.0",
43+
"hastscript": "^8.0.0",
4444
"prettier": "^3.0.0",
4545
"remark-cli": "^11.0.0",
4646
"remark-preset-wooorm": "^9.0.0",

0 commit comments

Comments
 (0)