diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index f5aa3194..00000000 --- a/index.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -declare namespace json2csv { - interface FieldValueCallback { - (row: T, field: string): string; - } - - interface FieldBase { - label?: string; - default?: string; - } - - interface Field extends FieldBase { - value: string; - } - - interface CallbackField extends FieldBase { - value: FieldValueCallback; - } - - interface Options { - ndjson?: boolean; - fields?: (string | Field | CallbackField)[]; - unwind?: string | string[]; - flatten?: boolean; - defaultValue?: string; - quote?: string; - doubleQuote?: string; - delimiter?: string; - eol?: string; - excelStrings?: boolean; - header?: boolean; - includeEmptyRows?: boolean; - withBOM?: boolean; - } -} - -declare function parse(data: Any, options: json2csv.Options): string; -declare function parse(data: Any, options: json2csv.Options<{ [key: string]: string; }>): string; - -export = parse;