UNPKG

hello-csv

Version:

A modern CSV importer written in Preact

19 lines 638 B
import { SelectOption } from '../components/Select'; import { SheetState } from '../types'; export type MappedSheetData = SheetState; export type MappedData = MappedSheetData[]; export interface ColumnMapping { csvColumnName: string; sheetId: string; sheetColumnId: string; } export type OnDataColumnsMappedCallback = (data: MappedData) => Promise<MappedData> | MappedData; export interface MapperState { columnMappings: ColumnMapping[]; } export interface MapperOptionValue { sheetId: string; sheetColumnId: string; } export type MapperOption = SelectOption<MapperOptionValue>; //# sourceMappingURL=types.d.ts.map