From fb2d3bac8267511166475dff4d462e1e9af0405b Mon Sep 17 00:00:00 2001 From: dangoo Date: Mon, 15 Apr 2019 13:34:35 +0200 Subject: [PATCH] fix: add missing param type for parseAsync --- types/json2csv/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;