We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06568ed commit 80c8f74Copy full SHA for 80c8f74
1 file changed
index.d.ts
@@ -9,7 +9,17 @@ import * as http from 'http';
9
10
export = FormData;
11
12
-interface Options {
+// 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 {
23
writable?: boolean;
24
readable?: boolean;
25
dataSize?: number;
0 commit comments