File: index.d.ts

package info (click to toggle)
node-cli-table 0.3.11%2B~cs0.13.4-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,036 kB
  • sloc: javascript: 7,508; makefile: 9
file content (45 lines) | stat: -rw-r--r-- 1,082 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// 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;