UNPKG

fast-csv

Version:
34 lines (33 loc) 1.07 kB
import { RowTransformFunction } from './types'; interface QuoteColumnMap { [s: string]: boolean; } declare type QuoteColumns = boolean | boolean[] | QuoteColumnMap; export interface FormatterOptionsArgs { objectMode?: boolean; delimiter?: string; rowDelimiter?: string; quote?: string; escape?: string; quoteColumns?: QuoteColumns; quoteHeaders?: QuoteColumns; headers?: null | boolean | string[]; includeEndRowDelimiter?: boolean; transform?: RowTransformFunction; } export declare class FormatterOptions { readonly objectMode: boolean; readonly delimiter: string; readonly rowDelimiter: string; readonly quote: string; readonly escape: string; readonly quoteColumns: QuoteColumns; readonly quoteHeaders: QuoteColumns; readonly headers: null | string[]; readonly includeEndRowDelimiter: boolean; readonly transform: RowTransformFunction | null; readonly hasProvidedHeaders: boolean; readonly escapedQuote: string; constructor(opts?: FormatterOptionsArgs); } export {};