UNPKG

@paydirt/fmt

Version:

String formating using commonly used standards

22 lines (21 loc) 513 B
interface ITableKeyMap { [key: string]: { label: string; format?: (data: any) => string | null; }; } interface ITableKey { key: string; label: string; format?: (data: any) => string | null; } interface ITableData { [key: string]: any; } interface ITableConfig { palette: string; padding: number; silent: boolean; } export default function table(keyMap: ITableKeyMap | Array<ITableKey>, data: Array<ITableData>, configuration?: ITableConfig): string; export {};