11/**
22 * @typedef {import('hast').Root } HastRoot
3- * @typedef {import('hast').DocType } HastDoctype
3+ * @typedef {import('hast').RootContent } HastRootContent
4+ * @typedef {import('hast').Doctype } HastDoctype
45 * @typedef {import('hast').Element } HastElement
56 * @typedef {import('hast').Text } HastText
67 * @typedef {import('hast').Comment } HastComment
7- * @typedef {import('hast').Content } HastChild
8+ * @typedef {import('hast').Nodes } HastNodes
89 */
910
1011/**
11- * @typedef {HastChild | HastRoot } HastNode
12- *
1312 * @callback AfterTransform
1413 * Callback called when each node is transformed.
15- * @param {HastNode } hastNode
14+ * @param {HastNodes } hastNode
1615 * hast node that was handled.
1716 * @param {Node } domNode
1817 * Corresponding DOM node.
@@ -54,7 +53,7 @@ const own = {}.hasOwnProperty
5453/**
5554 * Transform a hast tree to a DOM tree
5655 *
57- * @param {HastNode } tree
56+ * @param {HastNodes } tree
5857 * Tree to transform.
5958 * @param {Options | null | undefined } [options]
6059 * Configuration (optional).
@@ -73,7 +72,7 @@ export function toDom(tree, options) {
7372}
7473
7574/**
76- * @param {HastNode } node
75+ * @param {HastNodes } node
7776 * Node to transform.
7877 * @param {State } state
7978 * Info passed around about the current state.
@@ -89,7 +88,7 @@ function transform(node, state) {
8988/**
9089 * Transform any hast node.
9190 *
92- * @param {HastNode } node
91+ * @param {HastNodes } node
9392 * Node to transform.
9493 * @param {State } state
9594 * Info passed around about the current state.
@@ -307,7 +306,7 @@ function element(node, state) {
307306 *
308307 * @param {Node } node
309308 * DOM node to append to.
310- * @param {Array<HastChild > } children
309+ * @param {Array<HastRootContent > } children
311310 * hast children.
312311 * @param {State } state
313312 * Info passed around about the current state.
0 commit comments