From 4545f71dc406e1bf283bfd378c063e77c4947103 Mon Sep 17 00:00:00 2001 From: BehindTheMath <9314934+BehindTheMath@users.noreply.github.com> Date: Mon, 23 Jul 2018 01:13:58 -0400 Subject: [PATCH] [papaparse] Fix missing namespace for an external interface (#27353) The un-namespaced ReadableStream is defined in lib.dom.d.ts. The ReadableStream referenced here should be the one defined in @types/node. --- types/papaparse/index.d.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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