1 | declare namespace columns {
|
2 | export interface ColumnOptions {
|
3 | |
4 |
|
5 |
|
6 | align?: "left" | "right" | undefined;
|
7 | }
|
8 |
|
9 | export interface ColumnsOptions {
|
10 | |
11 |
|
12 |
|
13 | sep?: string | undefined;
|
14 | |
15 |
|
16 |
|
17 | columns?: Array<ColumnOptions | null> | undefined;
|
18 | }
|
19 |
|
20 | export type Row = Iterable<any> | ArrayLike<any>;
|
21 | export type Data = Iterable<Row> | ArrayLike<Row>;
|
22 | }
|
23 |
|
24 |
|
25 |
|
26 |
|
27 | declare function columns(data: ReadonlyArray<readonly any[]>, options?: columns.ColumnsOptions): string;
|
28 | declare function columns(data: columns.Data, options?: columns.ColumnsOptions): string;
|
29 | export = columns;
|