Skip to content

Commit 80c8f74

Browse files
committed
Add readable stream options to constructor type
1 parent 06568ed commit 80c8f74

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

index.d.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,17 @@ import * as http from 'http';
99

1010
export = FormData;
1111

12-
interface Options {
12+
// Extracted because @types/node doesn't export interfaces.
13+
interface ReadableOptions {
14+
highWaterMark?: number;
15+
encoding?: string;
16+
objectMode?: boolean;
17+
read?(this: stream.Readable, size: number): void;
18+
destroy?(this: stream.Readable, error: Error | null, callback: (error: Error | null) => void): void;
19+
autoDestroy?: boolean;
20+
}
21+
22+
interface Options extends ReadableOptions {
1323
writable?: boolean;
1424
readable?: boolean;
1525
dataSize?: number;

0 commit comments

Comments
 (0)