Skip to content

Commit 6108a76

Browse files
committed
Update @types/mdast
1 parent 00c9c30 commit 6108a76

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

lib/index.js

+2-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
/**
2-
* @typedef {import('mdast').Content} Content
3-
* @typedef {import('mdast').Root} Root
4-
*/
5-
6-
// To do: when `mdast` is released, use `Nodes`.
7-
/**
8-
* @typedef {Content | Root} Node
2+
* @typedef {import('mdast').Nodes} Nodes
93
*/
104

115
import {ok as assert} from 'devlop'
@@ -14,7 +8,7 @@ import {visit} from 'unist-util-visit'
148
/**
159
* Make an mdast tree compact by merging adjacent text nodes and block quotes.
1610
*
17-
* @param {Node} tree
11+
* @param {Nodes} tree
1812
* Tree to change.
1913
* @returns {undefined}
2014
* Nothing.

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
"index.js"
3333
],
3434
"dependencies": {
35-
"@types/mdast": "^3.0.0",
35+
"@types/mdast": "^4.0.0",
3636
"devlop": "^1.0.0",
37-
"unist-util-visit": "^4.0.0"
37+
"unist-util-visit": "^5.0.0"
3838
},
3939
"devDependencies": {
4040
"@types/node": "^20.0.0",
@@ -44,7 +44,7 @@
4444
"remark-preset-wooorm": "^9.0.0",
4545
"type-coverage": "^2.0.0",
4646
"typescript": "^5.0.0",
47-
"unist-builder": "^3.0.0",
47+
"unist-builder": "^4.0.0",
4848
"xo": "^0.54.0"
4949
},
5050
"scripts": {

0 commit comments

Comments
 (0)