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
33 lines
1022 B
Plaintext
33 lines
1022 B
Plaintext
import { ColorMap } from '../utils/colored-console-line';
|
|
import { ALIGNMENT, CharLengthDict, COLOR, Dictionary } from './common';
|
|
import { TableStyleDetails } from './internal-table';
|
|
export { ALIGNMENT, COLOR };
|
|
export interface ColumnOptionsRaw {
|
|
name: string;
|
|
title?: string;
|
|
alignment?: ALIGNMENT;
|
|
color?: COLOR;
|
|
maxLen?: number;
|
|
minLen?: number;
|
|
}
|
|
export interface ComputedColumn extends ColumnOptionsRaw {
|
|
function: (arg0: any) => any;
|
|
}
|
|
export type RowSortFunction = (row1: any, row2: any) => number;
|
|
export type RowFilterFunction = (row: any) => Boolean;
|
|
export interface ComplexOptions {
|
|
style?: TableStyleDetails;
|
|
title?: string;
|
|
columns?: ColumnOptionsRaw[];
|
|
rows?: Dictionary[];
|
|
sort?: RowSortFunction;
|
|
filter?: RowFilterFunction;
|
|
enabledColumns?: string[];
|
|
disabledColumns?: string[];
|
|
computedColumns?: ComputedColumn[];
|
|
rowSeparator?: boolean;
|
|
shouldDisableColors?: boolean;
|
|
colorMap?: ColorMap;
|
|
charLength?: CharLengthDict;
|
|
}
|