mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
[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.
This commit is contained in:
parent
ffc8351127
commit
4545f71dc4
7
types/papaparse/index.d.ts
vendored
7
types/papaparse/index.d.ts
vendored
@ -5,9 +5,12 @@
|
||||
// João Loff <https://github.com/jfloff>
|
||||
// John Reilly <https://github.com/johnnyreilly>
|
||||
// Alberto Restifo <https://github.com/albertorestifo>
|
||||
// Behind The Math <https://github.com/BehindTheMath>
|
||||
// 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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user