diff --git a/types/papaparse/index.d.ts b/types/papaparse/index.d.ts index 4c83399955..bbd75e9e61 100644 --- a/types/papaparse/index.d.ts +++ b/types/papaparse/index.d.ts @@ -5,9 +5,12 @@ // João Loff // John Reilly // Alberto Restifo +// Behind The Math // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +import "node"; + export as namespace Papa; /** @@ -17,9 +20,9 @@ export function parse(csvString: string, config?: ParseConfig): ParseResult; export function parse(file: File, config?: ParseConfig): ParseResult; -export function parse(stream: ReadableStream, config?: ParseConfig): ParseResult; +export function parse(stream: NodeJS.ReadableStream, config?: ParseConfig): ParseResult; -export function parse(stream: typeof NODE_STREAM_INPUT, config?: ParseConfig): ReadableStream; +export function parse(stream: typeof NODE_STREAM_INPUT, config?: ParseConfig): NodeJS.ReadableStream; /** * Unparses javascript data objects and returns a csv string