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

31 lines
736 B
TypeScript

import type {Align} from './lib/infer.js'
export {gfmTableHtml} from './lib/html.js'
export {gfmTable} from './lib/syntax.js'
declare module 'micromark-util-types' {
interface Token {
_align?: Align[]
}
interface TokenTypeMap {
table: 'table'
tableBody: 'tableBody'
tableCellDivider: 'tableCellDivider'
tableContent: 'tableContent'
tableData: 'tableData'
tableDelimiter: 'tableDelimiter'
tableDelimiterFiller: 'tableDelimiterFiller'
tableDelimiterMarker: 'tableDelimiterMarker'
tableDelimiterRow: 'tableDelimiterRow'
tableHead: 'tableHead'
tableHeader: 'tableHeader'
tableRow: 'tableRow'
}
interface CompileData {
tableAlign?: Align[]
tableColumn?: number
}
}