site/node_modules/micromark-extension-gfm-table/dev/lib/infer.d.ts
2024-10-14 08:09:33 +02:00

17 lines
457 B
TypeScript

/**
* Figure out the alignment of a GFM table.
*
* @param {Readonly<Array<Event>>} events
* List of events.
* @param {number} index
* Table enter event.
* @returns {Array<Align>}
* List of aligns.
*/
export function gfmTableAlign(
events: Readonly<Array<import('micromark-util-types').Event>>,
index: number
): Array<Align>
export type Event = import('micromark-util-types').Event
export type Align = 'center' | 'left' | 'none' | 'right'