@@ -280,7 +280,7 @@ class Headers(map: HeadersInit = js.Array[js.Array[String]]()) extends js.Iterab
280
280
sealed trait ReferrerPolicy extends js.Any
281
281
282
282
object ReferrerPolicy {
283
- val empty = " " .asInstanceOf [ReferrerPolicy ]
283
+ val empty : ReferrerPolicy = " " .asInstanceOf [ReferrerPolicy ]
284
284
val `no-referrer` = " no-referrer" .asInstanceOf [ReferrerPolicy ]
285
285
286
286
val `no-referrer-when-downgrade` =
@@ -298,14 +298,14 @@ object ReferrerPolicy {
298
298
trait HttpMethod extends js.Any
299
299
300
300
object HttpMethod {
301
- val GET = " GET" .asInstanceOf [HttpMethod ]
302
- val POST = " POST" .asInstanceOf [HttpMethod ]
303
- val PUT = " PUT" .asInstanceOf [HttpMethod ]
304
- val PATCH = " PATCH" .asInstanceOf [HttpMethod ]
305
- val DELETE = " DELETE" .asInstanceOf [HttpMethod ]
306
- val QUERY = " QUERY" .asInstanceOf [HttpMethod ]
307
- val HEAD = " HEAD" .asInstanceOf [HttpMethod ]
308
- val OPTIONS = " OPTIONS" .asInstanceOf [HttpMethod ]
301
+ val GET : HttpMethod = " GET" .asInstanceOf [HttpMethod ]
302
+ val POST : HttpMethod = " POST" .asInstanceOf [HttpMethod ]
303
+ val PUT : HttpMethod = " PUT" .asInstanceOf [HttpMethod ]
304
+ val PATCH : HttpMethod = " PATCH" .asInstanceOf [HttpMethod ]
305
+ val DELETE : HttpMethod = " DELETE" .asInstanceOf [HttpMethod ]
306
+ val QUERY : HttpMethod = " QUERY" .asInstanceOf [HttpMethod ]
307
+ val HEAD : HttpMethod = " HEAD" .asInstanceOf [HttpMethod ]
308
+ val OPTIONS : HttpMethod = " OPTIONS" .asInstanceOf [HttpMethod ]
309
309
}
310
310
311
311
/** Fetch APIs [[https://fetch.spec.whatwg.org/#requesttype RequestType enum ]]
@@ -314,14 +314,14 @@ object HttpMethod {
314
314
sealed trait RequestType extends js.Any
315
315
316
316
object RequestType {
317
- val empty = " " .asInstanceOf [RequestType ]
318
- val audio = " audio" .asInstanceOf [RequestType ]
319
- val font = " font" .asInstanceOf [RequestType ]
320
- val image = " image" .asInstanceOf [RequestType ]
321
- val script = " script" .asInstanceOf [RequestType ]
322
- val style = " style" .asInstanceOf [RequestType ]
323
- val track = " track" .asInstanceOf [RequestType ]
324
- val video = " video" .asInstanceOf [RequestType ]
317
+ val empty : RequestType = " " .asInstanceOf [RequestType ]
318
+ val audio : RequestType = " audio" .asInstanceOf [RequestType ]
319
+ val font : RequestType = " font" .asInstanceOf [RequestType ]
320
+ val image : RequestType = " image" .asInstanceOf [RequestType ]
321
+ val script : RequestType = " script" .asInstanceOf [RequestType ]
322
+ val style : RequestType = " style" .asInstanceOf [RequestType ]
323
+ val track : RequestType = " track" .asInstanceOf [RequestType ]
324
+ val video : RequestType = " video" .asInstanceOf [RequestType ]
325
325
}
326
326
327
327
/** Fetch APIs [[https://fetch.spec.whatwg.org/#requestdestination RequestDestination enum ]]
@@ -330,12 +330,12 @@ object RequestType {
330
330
sealed trait RequestDestination extends js.Any
331
331
332
332
object RequestDestination {
333
- val empty = " " .asInstanceOf [RequestDestination ]
334
- val document = " document" .asInstanceOf [RequestDestination ]
335
- val sharedworker = " sharedworker" .asInstanceOf [RequestDestination ]
336
- val subresource = " subresource" .asInstanceOf [RequestDestination ]
337
- val unknown = " unknown" .asInstanceOf [RequestDestination ]
338
- val worker = " worker" .asInstanceOf [RequestDestination ]
333
+ val empty : RequestDestination = " " .asInstanceOf [RequestDestination ]
334
+ val document : RequestDestination = " document" .asInstanceOf [RequestDestination ]
335
+ val sharedworker : RequestDestination = " sharedworker" .asInstanceOf [RequestDestination ]
336
+ val subresource : RequestDestination = " subresource" .asInstanceOf [RequestDestination ]
337
+ val unknown : RequestDestination = " unknown" .asInstanceOf [RequestDestination ]
338
+ val worker : RequestDestination = " worker" .asInstanceOf [RequestDestination ]
339
339
}
340
340
341
341
/** Fetch API's [[https://fetch.spec.whatwg.org/#requestmode RequestMode enum ]]
@@ -344,10 +344,10 @@ object RequestDestination {
344
344
sealed trait RequestMode extends js.Any
345
345
346
346
object RequestMode {
347
- val navigate = " navigate" .asInstanceOf [RequestMode ]
347
+ val navigate : RequestMode = " navigate" .asInstanceOf [RequestMode ]
348
348
val `same-origin` = " same-origin" .asInstanceOf [RequestMode ]
349
349
val `no-cors` = " no-cors" .asInstanceOf [RequestMode ]
350
- val cors = " cors" .asInstanceOf [RequestMode ]
350
+ val cors : RequestMode = " cors" .asInstanceOf [RequestMode ]
351
351
}
352
352
353
353
/** Fetch APIs [[https://fetch.spec.whatwg.org/#requestcredentials RequestCredentials enum ]]
@@ -356,9 +356,9 @@ object RequestMode {
356
356
sealed trait RequestCredentials extends js.Any
357
357
358
358
object RequestCredentials {
359
- val omit = " omit" .asInstanceOf [RequestCredentials ]
359
+ val omit : RequestCredentials = " omit" .asInstanceOf [RequestCredentials ]
360
360
val `same-origin` = " same-origin" .asInstanceOf [RequestCredentials ]
361
- val include = " include" .asInstanceOf [RequestCredentials ]
361
+ val include : RequestCredentials = " include" .asInstanceOf [RequestCredentials ]
362
362
}
363
363
364
364
/** Fetch APIs [[https://fetch.spec.whatwg.org/#requestcache RequestCache enum ]]
@@ -367,9 +367,9 @@ object RequestCredentials {
367
367
sealed trait RequestCache extends js.Any
368
368
369
369
object RequestCache {
370
- val default = " default" .asInstanceOf [RequestCache ]
370
+ val default : RequestCache = " default" .asInstanceOf [RequestCache ]
371
371
val `no-store` = " no-store" .asInstanceOf [RequestCache ]
372
- val reload = " reload" .asInstanceOf [RequestCache ]
372
+ val reload : RequestCache = " reload" .asInstanceOf [RequestCache ]
373
373
val `no-cache` = " no-cache" .asInstanceOf [RequestCache ]
374
374
val `force-cache` = " force-cache" .asInstanceOf [RequestCache ]
375
375
val `only-if-cached` = " only-if-cached" .asInstanceOf [RequestCache ]
@@ -381,9 +381,9 @@ object RequestCache {
381
381
sealed trait RequestRedirect extends js.Any
382
382
383
383
object RequestRedirect {
384
- val follow = " follow" .asInstanceOf [RequestRedirect ]
385
- val error = " error" .asInstanceOf [RequestRedirect ]
386
- val manual = " manual" .asInstanceOf [RequestRedirect ]
384
+ val follow : RequestRedirect = " follow" .asInstanceOf [RequestRedirect ]
385
+ val error : RequestRedirect = " error" .asInstanceOf [RequestRedirect ]
386
+ val manual : RequestRedirect = " manual" .asInstanceOf [RequestRedirect ]
387
387
}
388
388
389
389
@ js.native
@@ -392,10 +392,10 @@ sealed trait ResponseType extends js.Any
392
392
/** see [[https://fetch.spec.whatwg.org/#responsetype ]] of whatwg Fetch spec
393
393
*/
394
394
object ResponseType {
395
- val basic = " basic" .asInstanceOf [ResponseType ]
396
- val cors = " cors" .asInstanceOf [ResponseType ]
397
- val default = " default" .asInstanceOf [ResponseType ]
398
- val error = " error" .asInstanceOf [ResponseType ]
399
- val opaque = " opaque" .asInstanceOf [ResponseType ]
400
- val opaqueredirect = " opaqueredirect" .asInstanceOf [ResponseType ]
395
+ val basic : ResponseType = " basic" .asInstanceOf [ResponseType ]
396
+ val cors : ResponseType = " cors" .asInstanceOf [ResponseType ]
397
+ val default : ResponseType = " default" .asInstanceOf [ResponseType ]
398
+ val error : ResponseType = " error" .asInstanceOf [ResponseType ]
399
+ val opaque : ResponseType = " opaque" .asInstanceOf [ResponseType ]
400
+ val opaqueredirect : ResponseType = " opaqueredirect" .asInstanceOf [ResponseType ]
401
401
}
0 commit comments