Packages
A spellchecker for Elixir, made with Bun and cspell
Current section
Files
Jump to
Current section
Files
priv/bun/node_modules/cspell/dist/esm/util/table.d.ts
export type RowTextFn = (maxWidth: number | undefined) => string;
export type TableCell = string | RowTextFn;
export type TableRow = TableCell[];
export interface Table {
header: string[];
rows: TableRow[];
terminalWidth?: number;
deliminator?: string;
}
export declare function tableToLines(table: Table, deliminator?: string): string[];
type TextDecorator = (t: string, index: number) => string;
export declare function decorateRowWith(row: string[], ...decorators: TextDecorator[]): string[];
export {};
//# sourceMappingURL=table.d.ts.map