🎉 initiate project *astro_rewrite*
This commit is contained in:
parent
ffd4d5e86c
commit
2ba37bfbe3
8658 changed files with 2268794 additions and 2538 deletions
41
node_modules/mdast-util-to-hast/lib/handlers/list-item.d.ts
generated
vendored
Normal file
41
node_modules/mdast-util-to-hast/lib/handlers/list-item.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
/**
|
||||
* @typedef {import('hast').Element} Element
|
||||
* @typedef {import('hast').ElementContent} ElementContent
|
||||
* @typedef {import('hast').Properties} Properties
|
||||
* @typedef {import('mdast').Content} Content
|
||||
* @typedef {import('mdast').ListItem} ListItem
|
||||
* @typedef {import('mdast').Parent} Parent
|
||||
* @typedef {import('mdast').Root} Root
|
||||
* @typedef {import('../state.js').State} State
|
||||
*/
|
||||
/**
|
||||
* @typedef {Root | Content} Nodes
|
||||
* @typedef {Extract<Nodes, Parent>} Parents
|
||||
*/
|
||||
/**
|
||||
* Turn an mdast `listItem` node into hast.
|
||||
*
|
||||
* @param {State} state
|
||||
* Info passed around.
|
||||
* @param {ListItem} node
|
||||
* mdast node.
|
||||
* @param {Parents | null | undefined} parent
|
||||
* Parent of `node`.
|
||||
* @returns {Element}
|
||||
* hast node.
|
||||
*/
|
||||
export function listItem(
|
||||
state: State,
|
||||
node: ListItem,
|
||||
parent: Parents | null | undefined
|
||||
): Element
|
||||
export type Element = import('hast').Element
|
||||
export type ElementContent = import('hast').ElementContent
|
||||
export type Properties = import('hast').Properties
|
||||
export type Content = import('mdast').Content
|
||||
export type ListItem = import('mdast').ListItem
|
||||
export type Parent = import('mdast').Parent
|
||||
export type Root = import('mdast').Root
|
||||
export type State = import('../state.js').State
|
||||
export type Nodes = Root | Content
|
||||
export type Parents = Extract<Nodes, Parent>
|
||||
Loading…
Add table
Add a link
Reference in a new issue