@visactor/vtable
Version:
canvas table width high performance
11 lines (10 loc) • 460 B
TypeScript
export interface NumberFormatOption {
digitsAfterDecimal?: number;
scaler?: number;
thousandsSep?: string;
decimalSep?: string;
prefix?: string;
suffix?: string;
}
export declare function numberFormat(option?: NumberFormatOption): (num: number) => string;
export declare function dateFormat(baseField: string, formatString: string, utcOutput: boolean, mthNames?: string[], dayNames?: string[]): (record: Record<string, any>) => string;