UNPKG

flatfile-csv-importer

Version:

A simple adapter for elegantly importing CSV files via flatfile.io (Typescript, ES6, Browser)

21 lines (20 loc) 607 B
import IValidationResponse from './obj.validation-response'; export default interface LoadOptionsObject { /** * The number of records to receive per chunk */ inChunks?: number; /** * Provide a CSV string, file url, list of row arrays, or list of input objects */ source?: IPrimitive[][] | string | InputObject[]; } export declare type IPrimitive = string | boolean | null | number; export interface IPrimitiveObject { [key: string]: IPrimitive; } export interface InputObject { sequence?: number; data: IPrimitiveObject; errors?: IValidationResponse[]; }