UNPKG

vamp-utils

Version:
24 lines (23 loc) 562 B
export interface ExcelData { [key: string]: any; } export interface FieldMapping { [chineseField: string]: string; } export interface ImportParams { target: { files: File[]; }; } export interface ImportConfig<T = ExcelData> { fieldMapping: FieldMapping; callback: (data: T[]) => void; } export interface ExportConfig { data: ExcelData[]; chineseHeader: string[]; fieldMapping: string[]; fileName: string; } export type TranslateFunction = (val: string) => string; export type EmptyObject = Record<string, string>;