UNPKG

coersystem

Version:

Library for Angular projects

17 lines (16 loc) 547 B
export declare class Files { static readonly EXCEL_EXTENSIONS: string[]; /** Get Extension File */ static GetExtension(file: File): string; /** */ static IsExcel(file: File): boolean; /** Read excel file */ static ReadExcel<T>(file: File): Promise<{ columns: string[]; rows: T[]; }>; /** Export to excel file */ static ExportExcel<T>(data: T[], fileName?: string, sheetName?: string): void; /** Convert file to string base64 */ static ConvertToBase64(file: File): Promise<string>; }