excellentexport
Version:
Client side JavaScript export to Excel or CSV
31 lines (30 loc) • 710 B
TypeScript
export declare enum CellTypes {
TEXT = "s",
NUMBER = "n",
DATE = "d",
BOOLEAN = "b"
}
export declare enum CellPatterns {
INTEGER = "0",
DECIMAL = "0.00",
DATE = "dd/mm/yyyy",
TIME = "hh:mm:ss",
DATETIME = "dd/mm/yyyy hh:mm:ss",
CURRENCY = "[$$-409]#,##0.00;[RED]-[$$-409]#,##0.00",
PERCENTAGE = "0.00%",
EXPONENT = "0.00E+00",
TEXT = "@"
}
export type CellType = 's' | 'n' | 'd' | 'b';
export interface CellFormat {
type: CellType;
pattern?: string;
}
export interface CellFormats {
[key: string]: CellFormat;
}
export declare const PredefinedFormat: CellFormats;
export interface FormatDefinition {
range: string;
format?: CellFormat;
}