From ba8ea8de1abbc28c43ee3fedaa4fa05c758bc2de Mon Sep 17 00:00:00 2001 From: Frank Brullo Date: Fri, 5 Apr 2019 10:30:33 -0400 Subject: [PATCH] Fixed export default issue. --- types/save-csv/index.d.ts | 21 +++++++++++---------- types/save-csv/save-csv-tests.ts | 2 +- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/types/save-csv/index.d.ts b/types/save-csv/index.d.ts index 7fdb4447a2..516623ac3f 100644 --- a/types/save-csv/index.d.ts +++ b/types/save-csv/index.d.ts @@ -1,16 +1,17 @@ -// Type definitions for save-csv 4.1.0 +// Type definitions for save-csv 4.1 // Project: https://github.com/silverwind/save-csv // Definitions by: Frank Brullo // 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 +export interface SaveCsvProps { + filename: string; + sep?: string; + eol?: string; + quote?: string; + bom?: boolean; + mime?: string; + formatter?: (value: string | JSON) => void; } -export default function saveCsv (array: ReadonlyArray, options?: SaveCsvProps): void; + +export function saveCsv(array: ReadonlyArray, options?: SaveCsvProps): void; diff --git a/types/save-csv/save-csv-tests.ts b/types/save-csv/save-csv-tests.ts index dd9fd63f9f..9633f9add6 100644 --- a/types/save-csv/save-csv-tests.ts +++ b/types/save-csv/save-csv-tests.ts @@ -1,4 +1,4 @@ -import saveCsv from 'save-csv'; +import { saveCsv } from 'save-csv'; saveCsv([ {a: 1, b: 2},