Urara-Blog/node_modules/.pnpm-store/v3/files/8d/884ea8290c6ae6243e0cf90756aba856f5eeb89df46347afd139c6e6dd3803070e5fa5671cde64210bd3e6d38851d64d2c4a063666d55f0ab370e0c699b911
2022-08-14 01:14:53 +08:00

15 lines
435 B
Text

/**
* @typedef {import('hast').Parent} Parent
* @typedef {import('hast').Root} Root
* @typedef {Root|Parent['children'][number]} Node
*/
/**
* Rank of a heading: H1 -> 1, H2 -> 2, etc.
*
* @param {Node} node
* @returns {number|null}
*/
export function headingRank(node: Node): number | null
export type Parent = import('hast').Parent
export type Root = import('hast').Root
export type Node = Root | Parent['children'][number]