Skip to content

Commit cbc3dfa

Browse files
committed
update web externs
1 parent 24517ab commit cbc3dfa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+7264
-4259
lines changed

javascript/externs/web/chrome.js

Lines changed: 182 additions & 179 deletions
Large diffs are not rendered by default.

javascript/externs/web/fetchapi.js

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ var ReferrerPolicy;
3737

3838

3939
/**
40-
* @typedef {!Headers|!Array<!Array<string>>|!IObject<string,string>}
41-
* @see https://fetch.spec.whatwg.org/#headersinit
40+
* @typedef {!Headers|!Array<!Array<string>>|!Object<string,string>}
41+
* @see https://fetch.spec.whatwg.org/#typedefdef-headersinit
4242
*/
4343
var HeadersInit;
4444

@@ -64,7 +64,7 @@ Headers.prototype.append = function(name, value) {};
6464
*/
6565
Headers.prototype.delete = function(name) {};
6666

67-
/** @return {!Iterator<!Array<string>>} */
67+
/** @return {!IteratorIterable<!Array<string>>} */
6868
Headers.prototype.entries = function() {};
6969

7070
/**
@@ -85,7 +85,7 @@ Headers.prototype.getAll = function(name) {};
8585
*/
8686
Headers.prototype.has = function(name) {};
8787

88-
/** @return {!Iterator<string>} */
88+
/** @return {!IteratorIterable<string>} */
8989
Headers.prototype.keys = function() {};
9090

9191
/**
@@ -103,7 +103,8 @@ Headers.prototype[Symbol.iterator] = function() {};
103103

104104

105105
/**
106-
* @typedef {!Blob|!BufferSource|!FormData|string}
106+
* @typedef {
107+
* !Blob|!BufferSource|!FormData|!URLSearchParams|!ReadableStream|string}
107108
* @see https://fetch.spec.whatwg.org/#bodyinit
108109
*/
109110
var BodyInit;
@@ -208,6 +209,12 @@ Request.prototype.redirect;
208209
/** @type {string} */
209210
Request.prototype.integrity;
210211

212+
/** @type {boolean} */
213+
Request.prototype.isHistoryNavigation;
214+
215+
/** @type {(undefined|boolean)} */
216+
Request.prototype.keepalive;
217+
211218
/** @return {!Request} */
212219
Request.prototype.clone = function() {};
213220

@@ -248,6 +255,12 @@ RequestInit.prototype.redirect;
248255
/** @type {(undefined|string)} */
249256
RequestInit.prototype.integrity;
250257

258+
/** @type {(undefined|!AbortSignal)} */
259+
RequestInit.prototype.signal;
260+
261+
/** @type {(undefined|boolean)} */
262+
RequestInit.prototype.keepalive;
263+
251264
/** @type {(undefined|null)} */
252265
RequestInit.prototype.window;
253266

@@ -418,3 +431,10 @@ Window.prototype.fetch = function(input, opt_init) {};
418431
* @see https://fetch.spec.whatwg.org/#fetch-method
419432
*/
420433
WorkerGlobalScope.prototype.fetch = function(input, opt_init) {};
434+
435+
/**
436+
* if WorkerOptions.type = 'module', it specifies how `scriptURL` is fetched.
437+
* WorkerOptions is defined in html5.js.
438+
* @type {!RequestCredentials|undefined}
439+
*/
440+
WorkerOptions.prototype.credentials;

0 commit comments

Comments
 (0)