Installation
npm install --save @types/text-table
Summary
This package contains type definitions for text-table (https://github.com/substack/text-table).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/text-table.
declare function table(
rows: Array<Array<{}>>,
options?: table.Options
): string;
declare namespace table {
interface Options {
hsep?: string | undefined;
align?: Array<'l' | 'r' | 'c' | '.' | null | undefined> | undefined;
stringLength?(str: string): number;
}
}
export = table;
Additional Details
- Last updated: Fri, 02 Jul 2021 21:32:20 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Saad Quadri.