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: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: none
Credits
These definitions were written by Saad Quadri.