@beenotung/tslib
Version:
utils library in Typescript
9 lines (8 loc) • 513 B
TypeScript
export declare let dateFormatter: (x: Date) => string;
export declare function setDateFormatter(f: (x: Date) => string): void;
export declare function resetDateFormatter(): void;
export declare function setDateFormatLocale(lang: string, timezone: string): void;
export declare function resetDateFormatLocale(): void;
export declare function toString(o: any): string;
export declare function displayJSON(o: any, mode?: 'raw' | 'table'): string;
export declare function csv_to_table_html(rows: string[][]): string;