mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
46 lines
1.1 KiB
TypeScript
46 lines
1.1 KiB
TypeScript
// Type definitions for cli-table 0.3
|
|
// Project: https://github.com/Automattic/cli-table
|
|
// Definitions by: AryloYeung <https://github.com/arylo>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.1
|
|
|
|
interface TableOptions {
|
|
chars: Partial<Record<(
|
|
'top' |
|
|
'top-mid' |
|
|
'top-left' |
|
|
'top-right' |
|
|
'bottom' |
|
|
'bottom-mid' |
|
|
'bottom-left' |
|
|
'bottom-right' |
|
|
'left' |
|
|
'left-mid' |
|
|
'mid' |
|
|
'mid-mid' |
|
|
'right' |
|
|
'right-mid' |
|
|
'middle'
|
|
), string>>;
|
|
truncate: string;
|
|
colors: boolean;
|
|
colWidths: number[];
|
|
colAligns: Array<"left" | "middle" | "right">;
|
|
style: Partial<{
|
|
'padding-left': number;
|
|
'padding-right': number;
|
|
head: string[];
|
|
border: string[];
|
|
compact: boolean;
|
|
}>;
|
|
head: string[];
|
|
}
|
|
|
|
declare class Table extends Array {
|
|
constructor(options?: Partial<TableOptions>);
|
|
toString(): string;
|
|
static version: string;
|
|
}
|
|
|
|
export = Table;
|