From cd8712b0a5afb315123608aa6bd6108677dcd8e2 Mon Sep 17 00:00:00 2001 From: Tanguy Krotoff Date: Wed, 14 Dec 2016 01:49:51 +0100 Subject: [PATCH] Fix TypeScript error --- whatwg-streams/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/whatwg-streams/index.d.ts b/whatwg-streams/index.d.ts index 45e33f40c3..79560b009a 100644 --- a/whatwg-streams/index.d.ts +++ b/whatwg-streams/index.d.ts @@ -95,7 +95,7 @@ declare class ReadableStreamBYOBRequest { interface WritableStreamSink { start?(controller: WritableStreamDefaultController): void | Promise; - write?(chunk: any, controller: WritableStreamDefaultController): void | Promise; + write?(chunk: any, controller?: WritableStreamDefaultController): void | Promise; close?(controller: WritableStreamDefaultController): void | Promise; abort?(reason: string): void | Promise; }