diff --git a/externs/browser/streamsapi.js b/externs/browser/streamsapi.js index b6e432ce5fe..c2dad9039af 100644 --- a/externs/browser/streamsapi.js +++ b/externs/browser/streamsapi.js @@ -71,17 +71,17 @@ 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; -/** @type {(undefined|function(*):(!Promise<*>|undefined))} */ +/** @type {(undefined|function(*):(!IThenable<*>|undefined))} */ ReadableStreamSource.prototype.cancel; /** @type {(undefined|string)} */ @@ -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;