diff --git a/types/json2csv/index.d.ts b/types/json2csv/index.d.ts index 96a6b5d5ec..e4efa6f264 100644 --- a/types/json2csv/index.d.ts +++ b/types/json2csv/index.d.ts @@ -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( ): string; export function parseAsync( - data: Readonly | ReadonlyArray, + data: Readonly | ReadonlyArray | Readable, opts?: json2csv.Options, transformOpts?: TransformOptions ): Promise;