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; }