mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-04 17:20:09 +00:00
Changed to export default for a correct import in webconfig with ReactCreate.
This commit is contained in:
2
types/save-csv/index.d.ts
vendored
2
types/save-csv/index.d.ts
vendored
@@ -14,4 +14,4 @@ export interface SaveCsvProps {
|
||||
formatter?: (value: string | JSON) => void;
|
||||
}
|
||||
|
||||
export function saveCsv(array: ReadonlyArray<any>, options?: SaveCsvProps): void;
|
||||
export default function saveCsv(array: ReadonlyArray<any>, options?: SaveCsvProps): void;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { saveCsv } from 'save-csv';
|
||||
import saveCsv from 'save-csv';
|
||||
|
||||
saveCsv([
|
||||
{a: 1, b: 2},
|
||||
|
||||
@@ -1 +1,6 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
{
|
||||
"extends": "dtslint/dt.json",
|
||||
"rules": {
|
||||
"npm-naming": false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user