File tree 2 files changed +6
-11
lines changed
2 files changed +6
-11
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 {Content | Root } Node
2
+ * @typedef {import('hast').Nodes } Nodes
8
3
*/
9
4
10
5
import { headingRank } from 'hast-util-heading-rank'
@@ -18,7 +13,7 @@ import {visit} from 'unist-util-visit'
18
13
* Caps the rank so that shifting would not create invalid headings (so no `h0` or
19
14
* `h7`).
20
15
*
21
- * @template {Node } T
16
+ * @template {Nodes } T
22
17
* Node type.
23
18
* @param {T } tree
24
19
* Tree to change.
Original file line number Diff line number Diff line change 37
37
" index.js"
38
38
],
39
39
"dependencies" : {
40
- "@types/hast" : " ^2 .0.0" ,
41
- "hast-util-heading-rank" : " ^2 .0.0" ,
42
- "unist-util-visit" : " ^4 .0.0"
40
+ "@types/hast" : " ^3 .0.0" ,
41
+ "hast-util-heading-rank" : " ^3 .0.0" ,
42
+ "unist-util-visit" : " ^5 .0.0"
43
43
},
44
44
"devDependencies" : {
45
45
"@types/node" : " ^20.0.0" ,
46
46
"c8" : " ^8.0.0" ,
47
- "hastscript" : " ^7 .0.0" ,
47
+ "hastscript" : " ^8 .0.0" ,
48
48
"prettier" : " ^3.0.0" ,
49
49
"remark-cli" : " ^11.0.0" ,
50
50
"remark-preset-wooorm" : " ^9.0.0" ,
You can’t perform that action at this time.
0 commit comments