Skip to content

Commit

Permalink
ReadableStreamSource and WritableStreamSink methods may return thenables
Browse files Browse the repository at this point in the history
Closes #2115

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=141069372
  • Loading branch information
vobruba-martin authored and blickly committed Dec 6, 2016
1 parent e02cb07 commit b00f7ef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions externs/browser/streamsapi.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ function ReadableStreamSource() {};

/**
* @type {(undefined|
* function((!ReadableByteStreamController|!ReadableStreamDefaultController)):(!Promise<*>|undefined))}
* function((!ReadableByteStreamController|!ReadableStreamDefaultController)):(!IThenable<*>|undefined))}
*/
ReadableStreamSource.prototype.start;

/**
* @type {(undefined|
* function((!ReadableByteStreamController|!ReadableStreamDefaultController)):(!Promise<*>|undefined))}
* function((!ReadableByteStreamController|!ReadableStreamDefaultController)):(!IThenable<*>|undefined))}
*/
ReadableStreamSource.prototype.pull;

Expand Down Expand Up @@ -323,16 +323,16 @@ ReadableStreamBYOBRequest.prototype.respondWithNewView = function(view) {};
*/
function WritableStreamSink() {};

/** @type {(undefined|function(!WritableStreamDefaultController):(!Promise<*>|undefined))}*/
/** @type {(undefined|function(!WritableStreamDefaultController):(!IThenable<*>|undefined))}*/
WritableStreamSink.prototype.start;

/** @type {(undefined|function(!WritableStreamDefaultController):(!Promise<*>|undefined))}*/
/** @type {(undefined|function(!WritableStreamDefaultController):(!IThenable<*>|undefined))}*/
WritableStreamSink.prototype.write;

/** @type {(undefined|function():(!Promise<*>|undefined))} */
/** @type {(undefined|function():(!IThenable<*>|undefined))} */
WritableStreamSink.prototype.close;

/** @type {(undefined|function(*):(!Promise<*>|undefined))} */
/** @type {(undefined|function(*):(!IThenable<*>|undefined))} */
WritableStreamSink.prototype.abort;


Expand Down
2 changes: 1 addition & 1 deletion src/com/google/javascript/jscomp/resources.json

Large diffs are not rendered by default.

0 comments on commit b00f7ef

Please sign in to comment.