kjelsrud.dev/node_modules/mdast-util-to-markdown/lib/util/container-flow.d.ts

30 lines
1,023 B
TypeScript
Raw Normal View History

2023-07-19 21:31:30 +02:00
/**
* @typedef {import('../types.js').FlowContent} FlowContent
* @typedef {import('../types.js').Node} Node
* @typedef {import('../types.js').Parent} Parent
* @typedef {import('../types.js').State} State
* @typedef {import('../types.js').TrackFields} TrackFields
*/
/**
* @param {Parent & {children: Array<FlowContent>}} parent
* Parent of flow nodes.
* @param {State} state
* Info passed around about the current state.
* @param {TrackFields} info
* Info on where we are in the document we are generating.
* @returns {string}
* Serialized children, joined by (blank) lines.
*/
export function containerFlow(
parent: import('../types.js').Parent & {
children: Array<FlowContent>
},
state: State,
info: TrackFields
): string
export type FlowContent = import('../types.js').FlowContent
export type Node = import('../types.js').Node
export type Parent = import('../types.js').Parent
export type State = import('../types.js').State
export type TrackFields = import('../types.js').TrackFields