diff --git a/types/save-csv/index.d.ts b/types/save-csv/index.d.ts index 516623ac3f..3e28c3ea0f 100644 --- a/types/save-csv/index.d.ts +++ b/types/save-csv/index.d.ts @@ -14,4 +14,4 @@ export interface SaveCsvProps { formatter?: (value: string | JSON) => void; } -export function saveCsv(array: ReadonlyArray, options?: SaveCsvProps): void; +export default 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 9633f9add6..dd9fd63f9f 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}, diff --git a/types/save-csv/tslint.json b/types/save-csv/tslint.json index 3db14f85ea..41344f59e7 100644 --- a/types/save-csv/tslint.json +++ b/types/save-csv/tslint.json @@ -1 +1,6 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "npm-naming": false + } +}