File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change 1
1
/**
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
8
3
*/
9
4
10
5
// To do next major: return `undefined`.
11
6
/**
12
7
* Get the rank (`1` to `6`) of headings (`h1` to `h6`).
13
8
*
14
- * @param {Node } node
9
+ * @param {Nodes } node
15
10
* Node to check.
16
11
* @returns {number | null }
17
12
* Rank of the heading or `null` if not a heading.
Original file line number Diff line number Diff line change 35
35
" index.js"
36
36
],
37
37
"dependencies" : {
38
- "@types/hast" : " ^2 .0.0"
38
+ "@types/hast" : " ^3 .0.0"
39
39
},
40
40
"devDependencies" : {
41
41
"@types/node" : " ^20.0.0" ,
42
42
"c8" : " ^8.0.0" ,
43
- "hastscript" : " ^7 .0.0" ,
43
+ "hastscript" : " ^8 .0.0" ,
44
44
"prettier" : " ^3.0.0" ,
45
45
"remark-cli" : " ^11.0.0" ,
46
46
"remark-preset-wooorm" : " ^9.0.0" ,
You can’t perform that action at this time.
0 commit comments