File tree Expand file tree Collapse file tree 2 files changed +6
-11
lines changed
Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Original file line number Diff line number Diff line change 11/**
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
83 */
94
105import { headingRank } from 'hast-util-heading-rank'
@@ -18,7 +13,7 @@ import {visit} from 'unist-util-visit'
1813 * Caps the rank so that shifting would not create invalid headings (so no `h0` or
1914 * `h7`).
2015 *
21- * @template {Node } T
16+ * @template {Nodes } T
2217 * Node type.
2318 * @param {T } tree
2419 * Tree to change.
Original file line number Diff line number Diff line change 3737 " index.js"
3838 ],
3939 "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"
4343 },
4444 "devDependencies" : {
4545 "@types/node" : " ^20.0.0" ,
4646 "c8" : " ^8.0.0" ,
47- "hastscript" : " ^7 .0.0" ,
47+ "hastscript" : " ^8 .0.0" ,
4848 "prettier" : " ^3.0.0" ,
4949 "remark-cli" : " ^11.0.0" ,
5050 "remark-preset-wooorm" : " ^9.0.0" ,
You can’t perform that action at this time.
0 commit comments