🎉 initiate project *astro_rewrite*
This commit is contained in:
parent
ffd4d5e86c
commit
2ba37bfbe3
8658 changed files with 2268794 additions and 2538 deletions
31
node_modules/mdast-util-to-string/lib/index.d.ts
generated
vendored
Normal file
31
node_modules/mdast-util-to-string/lib/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
/**
|
||||
* Get the text content of a node or list of nodes.
|
||||
*
|
||||
* Prefers the node’s plain-text fields, otherwise serializes its children,
|
||||
* and if the given value is an array, serialize the nodes in it.
|
||||
*
|
||||
* @param {unknown} value
|
||||
* Thing to serialize, typically `Node`.
|
||||
* @param {Options | null | undefined} [options]
|
||||
* Configuration (optional).
|
||||
* @returns {string}
|
||||
* Serialized `value`.
|
||||
*/
|
||||
export function toString(
|
||||
value: unknown,
|
||||
options?: Options | null | undefined
|
||||
): string
|
||||
export type Node = import('mdast').Root | import('mdast').Content
|
||||
/**
|
||||
* Configuration (optional).
|
||||
*/
|
||||
export type Options = {
|
||||
/**
|
||||
* Whether to use `alt` for `image`s.
|
||||
*/
|
||||
includeImageAlt?: boolean | null | undefined
|
||||
/**
|
||||
* Whether to use `value` of HTML.
|
||||
*/
|
||||
includeHtml?: boolean | null | undefined
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue