jsm-utilities
Version:
A utilities library.
9 lines (8 loc) • 427 B
TypeScript
type InferReturnType<T> = T extends (...args: any[]) => infer R ? R : never;
export default class ExcelParser {
filePath: string;
constructor(filePath?: string);
parse: <T extends (row: any[], index: number) => any>(filePath?: string, mapper?: T, sheet_name?: string) => Promise<Jsm.Core.Utils.NonUndefined<InferReturnType<T>>[]>;
static download: (data: any[], fileName: string) => Promise<void>;
}
export {};