From 131387a849d02737776ce78f702a29fcfdb892a9 Mon Sep 17 00:00:00 2001 From: dangoo Date: Mon, 15 Apr 2019 13:26:18 +0200 Subject: [PATCH] fix: changed r/w interfaces from fs to stream --- types/json2csv/JSON2CSVAsyncParser.d.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/types/json2csv/JSON2CSVAsyncParser.d.ts b/types/json2csv/JSON2CSVAsyncParser.d.ts index a9bac21226..3b5d396542 100644 --- a/types/json2csv/JSON2CSVAsyncParser.d.ts +++ b/types/json2csv/JSON2CSVAsyncParser.d.ts @@ -1,5 +1,4 @@ -import { ReadStream, WriteStream } from "fs"; -import { Transform, TransformOptions, Writable } from "stream"; +import { Transform, TransformOptions, Writable, Readable } from "stream"; import JSON2CSVBase, { json2csv } from "./JSON2CSVBase"; import JSON2CSVTransform from "./JSON2CSVTransform"; @@ -11,11 +10,11 @@ declare class JSON2CSVAsyncParser extends JSON2CSVBase { constructor(opts?: json2csv.Options, transformOpts?: TransformOptions); - public fromInput(input: ReadStream): JSON2CSVAsyncParser; + public fromInput(input: Readable): JSON2CSVAsyncParser; public throughTransform(transform: Transform): JSON2CSVAsyncParser; - public toOutput(output: WriteStream): JSON2CSVAsyncParser; + public toOutput(output: Writable): JSON2CSVAsyncParser; public promise(): Promise; }