🎉 initiate project *astro_rewrite*
This commit is contained in:
parent
ffd4d5e86c
commit
2ba37bfbe3
8658 changed files with 2268794 additions and 2538 deletions
22
node_modules/mdast-util-to-hast/lib/wrap.d.ts
generated
vendored
Normal file
22
node_modules/mdast-util-to-hast/lib/wrap.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
/**
|
||||
* @typedef {import('hast').Content} Content
|
||||
* @typedef {import('hast').Text} Text
|
||||
*/
|
||||
/**
|
||||
* Wrap `nodes` with line endings between each node.
|
||||
*
|
||||
* @template {Content} Type
|
||||
* Node type.
|
||||
* @param {Array<Type>} nodes
|
||||
* List of nodes to wrap.
|
||||
* @param {boolean | null | undefined} [loose=false]
|
||||
* Whether to add line endings at start and end.
|
||||
* @returns {Array<Type | Text>}
|
||||
* Wrapped nodes.
|
||||
*/
|
||||
export function wrap<Type extends import('hast').Content>(
|
||||
nodes: Type[],
|
||||
loose?: boolean | null | undefined
|
||||
): (import('hast').Text | Type)[]
|
||||
export type Content = import('hast').Content
|
||||
export type Text = import('hast').Text
|
||||
Loading…
Add table
Add a link
Reference in a new issue