@@ -280,7 +280,7 @@ class Headers(map: HeadersInit = js.Array[js.Array[String]]()) extends js.Iterab
280280sealed trait ReferrerPolicy extends js.Any
281281
282282object ReferrerPolicy {
283- val empty = " " .asInstanceOf [ReferrerPolicy ]
283+ val empty : ReferrerPolicy = " " .asInstanceOf [ReferrerPolicy ]
284284 val `no-referrer` = " no-referrer" .asInstanceOf [ReferrerPolicy ]
285285
286286 val `no-referrer-when-downgrade` =
@@ -298,14 +298,14 @@ object ReferrerPolicy {
298298trait HttpMethod extends js.Any
299299
300300object 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 ]
309309}
310310
311311/** Fetch APIs [[https://fetch.spec.whatwg.org/#requesttype RequestType enum ]]
@@ -314,14 +314,14 @@ object HttpMethod {
314314sealed trait RequestType extends js.Any
315315
316316object 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 ]
325325}
326326
327327/** Fetch APIs [[https://fetch.spec.whatwg.org/#requestdestination RequestDestination enum ]]
@@ -330,12 +330,12 @@ object RequestType {
330330sealed trait RequestDestination extends js.Any
331331
332332object 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 ]
339339}
340340
341341/** Fetch API's [[https://fetch.spec.whatwg.org/#requestmode RequestMode enum ]]
@@ -344,10 +344,10 @@ object RequestDestination {
344344sealed trait RequestMode extends js.Any
345345
346346object RequestMode {
347- val navigate = " navigate" .asInstanceOf [RequestMode ]
347+ val navigate : RequestMode = " navigate" .asInstanceOf [RequestMode ]
348348 val `same-origin` = " same-origin" .asInstanceOf [RequestMode ]
349349 val `no-cors` = " no-cors" .asInstanceOf [RequestMode ]
350- val cors = " cors" .asInstanceOf [RequestMode ]
350+ val cors : RequestMode = " cors" .asInstanceOf [RequestMode ]
351351}
352352
353353/** Fetch APIs [[https://fetch.spec.whatwg.org/#requestcredentials RequestCredentials enum ]]
@@ -356,9 +356,9 @@ object RequestMode {
356356sealed trait RequestCredentials extends js.Any
357357
358358object RequestCredentials {
359- val omit = " omit" .asInstanceOf [RequestCredentials ]
359+ val omit : RequestCredentials = " omit" .asInstanceOf [RequestCredentials ]
360360 val `same-origin` = " same-origin" .asInstanceOf [RequestCredentials ]
361- val include = " include" .asInstanceOf [RequestCredentials ]
361+ val include : RequestCredentials = " include" .asInstanceOf [RequestCredentials ]
362362}
363363
364364/** Fetch APIs [[https://fetch.spec.whatwg.org/#requestcache RequestCache enum ]]
@@ -367,9 +367,9 @@ object RequestCredentials {
367367sealed trait RequestCache extends js.Any
368368
369369object RequestCache {
370- val default = " default" .asInstanceOf [RequestCache ]
370+ val default : RequestCache = " default" .asInstanceOf [RequestCache ]
371371 val `no-store` = " no-store" .asInstanceOf [RequestCache ]
372- val reload = " reload" .asInstanceOf [RequestCache ]
372+ val reload : RequestCache = " reload" .asInstanceOf [RequestCache ]
373373 val `no-cache` = " no-cache" .asInstanceOf [RequestCache ]
374374 val `force-cache` = " force-cache" .asInstanceOf [RequestCache ]
375375 val `only-if-cached` = " only-if-cached" .asInstanceOf [RequestCache ]
@@ -381,9 +381,9 @@ object RequestCache {
381381sealed trait RequestRedirect extends js.Any
382382
383383object 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 ]
387387}
388388
389389@ js.native
@@ -392,10 +392,10 @@ sealed trait ResponseType extends js.Any
392392/** see [[https://fetch.spec.whatwg.org/#responsetype ]] of whatwg Fetch spec
393393 */
394394object 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 ]
401401}
0 commit comments