UNPKG

moonlifedb

Version:

A JSON database with a bunch of tools and typescript support.

20 lines (19 loc) 754 B
interface ObjectOfArrays { [index: string]: (string | number | boolean)[]; } export declare class CosmeticConstructor { /** * A table generator tool. * Creates a summary table based on Object of Arrays. * @example const table = new Table.summaryTableY({ firstColumn: ['User1', 'User2'], secondColumn: ['Lissa Squeens'] }, 'longest'); * * @param {Object} table object of your table, where every element should be string[] | number[] | boolean[] * @param {Number|'longest'} length how wide each column has to be */ summaryTableY(settings: { table: ObjectOfArrays; tableName?: string | undefined; length?: number | 'longest' | undefined; }): string; } export {};