File tree 2 files changed +5
-7
lines changed 2 files changed +5
-7
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
2
+ * @typedef {import('hast').Nodes } Nodes
4
3
* @typedef {import('hast').Text } Text
5
4
* @typedef {import('hast').Element } Element
6
5
*/
7
6
8
7
/**
9
- * @typedef {Content | Root } Node
10
8
* @typedef {Element & {tagName: 'br'} } BreakElement
11
9
*/
12
10
@@ -28,7 +26,7 @@ const search = /\r?\n|\r/g
28
26
* In this utility, we accept all parent nodes and handle them as elements, and
29
27
* for all literals we set the `value` of the given node the given value.
30
28
*
31
- * @template {Node } T
29
+ * @template {Nodes } T
32
30
* Node type.
33
31
* @param {T } tree
34
32
* Tree to change.
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" ,
47
47
"type-coverage" : " ^2.0.0" ,
48
48
"typescript" : " ^5.0.0" ,
49
- "unist-builder" : " ^3 .0.0" ,
49
+ "unist-builder" : " ^4 .0.0" ,
50
50
"xo" : " ^0.55.0"
51
51
},
52
52
"scripts" : {
You can’t perform that action at this time.
0 commit comments