Skip to content

Commit f4cb639

Browse files
authored
write method can return anything
as anything will be resolved to Promise. Based on comment here: whatwg/streams#45 (comment)
1 parent 9003540 commit f4cb639

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/whatwg-streams/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ declare class ReadableStreamBYOBRequest {
9595

9696
interface WritableStreamSink {
9797
start?(controller: WritableStreamDefaultController): void | Promise<void>;
98-
write?(chunk: any, controller?: WritableStreamDefaultController): void | Promise<any>;
98+
write?(chunk: any, controller?: WritableStreamDefaultController): any;
9999
close?(controller: WritableStreamDefaultController): void | Promise<void>;
100100
abort?(reason: string): void | Promise<void>;
101101
}

0 commit comments

Comments
 (0)