From 04c52fd53836c16e87cff375944a240b30f0dcbd Mon Sep 17 00:00:00 2001 From: Mattias Buelens Date: Sun, 10 Jun 2018 00:28:38 +0200 Subject: [PATCH] Sink.write can return void or a promise --- types/whatwg-streams/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/whatwg-streams/index.d.ts b/types/whatwg-streams/index.d.ts index cadcf346ca..c6d5ea893b 100644 --- a/types/whatwg-streams/index.d.ts +++ b/types/whatwg-streams/index.d.ts @@ -96,7 +96,7 @@ declare class ReadableStreamBYOBRequest { interface WritableStreamSink { start?(controller: WritableStreamDefaultController): void | Promise; - write?(chunk: W, controller?: WritableStreamDefaultController): any; + write?(chunk: W, controller?: WritableStreamDefaultController): void | Promise; close?(controller: WritableStreamDefaultController): void | Promise; abort?(reason: any): void | Promise; }