csv-import-react
Version:
Open-source CSV, TSV, and XLS/XLSX file importer for React and JavaScript
18 lines (17 loc) • 395 B
TypeScript
export type Template = {
columns: TemplateColumn[];
};
export type TemplateColumn = {
name: string;
key: string;
description?: string;
required?: boolean;
suggested_mappings?: string[];
multiple?: boolean;
combiner?: (values: string[]) => string;
};
export type UploadColumn = {
index: number;
name: string;
sample_data: string[];
};