21 lines
609 B
TypeScript
21 lines
609 B
TypeScript
/**
|
|
* @typedef {import('hast').Element} Element
|
|
* @typedef {import('hast').Properties} Properties
|
|
* @typedef {import('mdast').List} List
|
|
* @typedef {import('../state.js').State} State
|
|
*/
|
|
/**
|
|
* Turn an mdast `list` node into hast.
|
|
*
|
|
* @param {State} state
|
|
* Info passed around.
|
|
* @param {List} node
|
|
* mdast node.
|
|
* @returns {Element}
|
|
* hast node.
|
|
*/
|
|
export function list(state: State, node: List): Element
|
|
export type Element = import('hast').Element
|
|
export type Properties = import('hast').Properties
|
|
export type List = import('mdast').List
|
|
export type State = import('../state.js').State
|