File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 22 * @typedef {import('mdast').Root|import('mdast').Content } Node
33 *
44 * @typedef Options
5+ * Configuration (optional).
56 * @property {boolean } [includeImageAlt=true]
7+ * Whether to use `alt` for `image`s.
68 */
79
810/**
9- * Get the text content of a node.
10- * Prefer the node’s plain-text fields, otherwise serialize its children,
11+ * Get the text content of a node or list of nodes .
12+ * Prefers the node’s plain-text fields, otherwise serializes its children,
1113 * and if the given value is an array, serialize the nodes in it.
1214 *
1315 * @param {unknown } value
@@ -36,12 +38,12 @@ function one(value, includeImageAlt) {
3638}
3739
3840/**
39- * @param {Array. <unknown> } values
41+ * @param {Array<unknown> } values
4042 * @param {boolean } includeImageAlt
4143 * @returns {string }
4244 */
4345function all ( values , includeImageAlt ) {
44- /** @type {Array. <string> } */
46+ /** @type {Array<string> } */
4547 const result = [ ]
4648 let index = - 1
4749
You can’t perform that action at this time.
0 commit comments