Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
30 lines
1.2 KiB
Plaintext
30 lines
1.2 KiB
Plaintext
import { CharLengthDict, Dictionary, Row } from '../models/common';
|
|
import { ComplexOptions, ComputedColumn, RowFilterFunction, RowSortFunction } from '../models/external-table';
|
|
import { Column, TableStyleDetails } from '../models/internal-table';
|
|
import { ColorMap } from '../utils/colored-console-line';
|
|
import { RowOptions } from '../utils/table-helpers';
|
|
declare class TableInternal {
|
|
title?: string;
|
|
tableStyle: TableStyleDetails;
|
|
columns: Column[];
|
|
rows: Row[];
|
|
filterFunction: RowFilterFunction;
|
|
sortFunction: RowSortFunction;
|
|
enabledColumns: string[];
|
|
disabledColumns: string[];
|
|
computedColumns: any[];
|
|
rowSeparator: boolean;
|
|
colorMap: ColorMap;
|
|
charLength: CharLengthDict;
|
|
initSimple(columns: string[]): void;
|
|
initDetailed(options: ComplexOptions): void;
|
|
constructor(options?: ComplexOptions | string[]);
|
|
createColumnFromRow(text: Dictionary): void;
|
|
addColumn(textOrObj: string | ComputedColumn): void;
|
|
addColumns(toBeInsertedColumns: string[]): void;
|
|
addRow(text: Dictionary, options?: RowOptions): void;
|
|
addRows(toBeInsertedRows: Dictionary[], options?: RowOptions): void;
|
|
renderTable(): string;
|
|
}
|
|
export default TableInternal;
|