File tree Expand file tree Collapse file tree 2 files changed +9
-13
lines changed Expand file tree Collapse file tree 2 files changed +9
-13
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 {Root | Content } Node
2+ * @typedef {import('hast').Nodes } Nodes
83 */
94
105import { convertElement } from 'hast-util-is-element'
@@ -78,14 +73,15 @@ export function phrasing(value) {
7873 ( value . type === 'text' ||
7974 basic ( value ) ||
8075 embedded ( value ) ||
76+ // @ts -expect-error: To do: update `hast-util-is-body-ok-link` in `rehype-minify`.
8177 isBodyOkLink ( value ) ||
8278 ( meta ( value ) && hasProperty ( value , 'itemProp' ) ) )
8379 )
8480}
8581
8682/**
8783 * @param {unknown } value
88- * @returns {value is Node }
84+ * @returns {value is Nodes }
8985 */
9086function node ( value ) {
9187 // @ts -expect-error: looks like an object.
Original file line number Diff line number Diff line change 3333 " index.js"
3434 ],
3535 "dependencies" : {
36- "@types/hast" : " ^2 .0.0" ,
37- "hast-util-embedded" : " ^2 .0.0" ,
38- "hast-util-has-property" : " ^2 .0.0" ,
36+ "@types/hast" : " ^3 .0.0" ,
37+ "hast-util-embedded" : " ^3 .0.0" ,
38+ "hast-util-has-property" : " ^3 .0.0" ,
3939 "hast-util-is-body-ok-link" : " ^2.0.0" ,
40- "hast-util-is-element" : " ^2 .0.0"
40+ "hast-util-is-element" : " ^3 .0.0"
4141 },
4242 "devDependencies" : {
4343 "@types/node" : " ^20.0.0" ,
4444 "c8" : " ^8.0.0" ,
45- "hastscript" : " ^7 .0.0" ,
45+ "hastscript" : " ^8 .0.0" ,
4646 "prettier" : " ^3.0.0" ,
4747 "remark-cli" : " ^11.0.0" ,
4848 "remark-preset-wooorm" : " ^9.0.0" ,
4949 "type-coverage" : " ^2.0.0" ,
5050 "typescript" : " ^5.0.0" ,
51- "unist-builder" : " ^3 .0.0" ,
51+ "unist-builder" : " ^4 .0.0" ,
5252 "xo" : " ^0.55.0"
5353 },
5454 "scripts" : {
You can’t perform that action at this time.
0 commit comments