mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-04 17:20:09 +00:00
Fixed export default issue.
This commit is contained in:
21
types/save-csv/index.d.ts
vendored
21
types/save-csv/index.d.ts
vendored
@@ -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 <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
|
||||
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<any>, options?: SaveCsvProps): void;
|
||||
|
||||
export 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},
|
||||
|
||||
Reference in New Issue
Block a user