Skip to content

Commit

Permalink
write method can return anything
Browse files Browse the repository at this point in the history
as anything will be resolved to Promise. Based on comment here: whatwg/streams#45 (comment)
  • Loading branch information
saschanaz authored Apr 12, 2017
1 parent 9003540 commit f4cb639
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/whatwg-streams/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ declare class ReadableStreamBYOBRequest {

interface WritableStreamSink {
start?(controller: WritableStreamDefaultController): void | Promise<void>;
write?(chunk: any, controller?: WritableStreamDefaultController): void | Promise<any>;
write?(chunk: any, controller?: WritableStreamDefaultController): any;
close?(controller: WritableStreamDefaultController): void | Promise<void>;
abort?(reason: string): void | Promise<void>;
}
Expand Down

0 comments on commit f4cb639

Please sign in to comment.