mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
fix: add missing param type for parseAsync
This commit is contained in:
Vendored
+2
-2
@@ -5,7 +5,7 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
import { TransformOptions } from 'stream';
|
||||
import { Readable, TransformOptions } from 'stream';
|
||||
|
||||
import { json2csv } from './JSON2CSVBase';
|
||||
import JSON2CSVParser from './JSON2CSVParser';
|
||||
@@ -27,7 +27,7 @@ export function parse<T>(
|
||||
): string;
|
||||
|
||||
export function parseAsync<T>(
|
||||
data: Readonly<T> | ReadonlyArray<T>,
|
||||
data: Readonly<T> | ReadonlyArray<T> | Readable,
|
||||
opts?: json2csv.Options<T>,
|
||||
transformOpts?: TransformOptions
|
||||
): Promise<string>;
|
||||
|
||||
Reference in New Issue
Block a user