Fix TypeScript error

This commit is contained in:
Tanguy Krotoff
2016-12-14 01:49:51 +01:00
parent 3ef904898e
commit cd8712b0a5
+1 -1
View File
@@ -95,7 +95,7 @@ declare class ReadableStreamBYOBRequest {
interface WritableStreamSink {
start?(controller: WritableStreamDefaultController): void | Promise<void>;
write?(chunk: any, controller: WritableStreamDefaultController): void | Promise<void>;
write?(chunk: any, controller?: WritableStreamDefaultController): void | Promise<any>;
close?(controller: WritableStreamDefaultController): void | Promise<void>;
abort?(reason: string): void | Promise<void>;
}