DefinitelyTyped/types/save-csv/index.d.ts
2019-04-10 14:29:38 -04:00

19 lines
541 B
TypeScript

// Type definitions for save-csv 4.1
// Project: https://github.com/silverwind/save-csv
// Definitions by: Frank Brullo <https://github.com/FrankBrullo>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.1
interface SaveCsvProps {
filename: string;
sep?: string;
eol?: string;
quote?: string;
bom?: boolean;
mime?: string;
formatter?: (value: string | JSON) => void;
}
declare function saveCsv(array: ReadonlyArray<any>, options?: SaveCsvProps): void;
export = saveCsv;