@@ -37,8 +37,8 @@ var ReferrerPolicy;
37
37
38
38
39
39
/**
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
42
42
*/
43
43
var HeadersInit ;
44
44
@@ -64,7 +64,7 @@ Headers.prototype.append = function(name, value) {};
64
64
*/
65
65
Headers . prototype . delete = function ( name ) { } ;
66
66
67
- /** @return {!Iterator <!Array<string>> } */
67
+ /** @return {!IteratorIterable <!Array<string>> } */
68
68
Headers . prototype . entries = function ( ) { } ;
69
69
70
70
/**
@@ -85,7 +85,7 @@ Headers.prototype.getAll = function(name) {};
85
85
*/
86
86
Headers . prototype . has = function ( name ) { } ;
87
87
88
- /** @return {!Iterator <string> } */
88
+ /** @return {!IteratorIterable <string> } */
89
89
Headers . prototype . keys = function ( ) { } ;
90
90
91
91
/**
@@ -103,7 +103,8 @@ Headers.prototype[Symbol.iterator] = function() {};
103
103
104
104
105
105
/**
106
- * @typedef {!Blob|!BufferSource|!FormData|string }
106
+ * @typedef {
107
+ * !Blob|!BufferSource|!FormData|!URLSearchParams|!ReadableStream|string}
107
108
* @see https://fetch.spec.whatwg.org/#bodyinit
108
109
*/
109
110
var BodyInit ;
@@ -208,6 +209,12 @@ Request.prototype.redirect;
208
209
/** @type {string } */
209
210
Request . prototype . integrity ;
210
211
212
+ /** @type {boolean } */
213
+ Request . prototype . isHistoryNavigation ;
214
+
215
+ /** @type {(undefined|boolean) } */
216
+ Request . prototype . keepalive ;
217
+
211
218
/** @return {!Request } */
212
219
Request . prototype . clone = function ( ) { } ;
213
220
@@ -248,6 +255,12 @@ RequestInit.prototype.redirect;
248
255
/** @type {(undefined|string) } */
249
256
RequestInit . prototype . integrity ;
250
257
258
+ /** @type {(undefined|!AbortSignal) } */
259
+ RequestInit . prototype . signal ;
260
+
261
+ /** @type {(undefined|boolean) } */
262
+ RequestInit . prototype . keepalive ;
263
+
251
264
/** @type {(undefined|null) } */
252
265
RequestInit . prototype . window ;
253
266
@@ -418,3 +431,10 @@ Window.prototype.fetch = function(input, opt_init) {};
418
431
* @see https://fetch.spec.whatwg.org/#fetch-method
419
432
*/
420
433
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