FreeDatas2HTML/src/interfacesPapaParse.ts

22 lines
609 B
TypeScript
Raw Normal View History

// Options de Papa Parse
// cf. https://www.papaparse.com/docs#config
2021-10-18 11:26:21 +02:00
export interface PublicPapaParseOptions
{
delimiter: string;
newline: string;
quoteChar: string;
escapeChar: string;
transformHeader?(field: string, index: number): string;
preview: number;
comments: false|string;
fastMode: boolean|undefined;
transform?(value: string): string;
}
2021-10-18 11:26:21 +02:00
export interface PrivatePapaParseOptions
{
header: boolean;
download: boolean;
downloadRequestHeaders: undefined| { [index: string]:string };
skipEmptyLines: string;
withCredentials: boolean|undefined;
}