0 | module Web.Raw.Serviceworker
3 | import Web.Internal.ServiceworkerPrim
4 | import Web.Internal.Types
18 | -> (requests : Array (Union2 Request String))
19 | -> JSIO (Promise Undefined)
20 | addAll a b = primJS $
Cache.prim__addAll a b
26 | -> (request : HSum [Request, String])
27 | -> JSIO (Promise Undefined)
28 | add a b = primJS $
Cache.prim__add a (toFFI b)
33 | {auto 0 _ : JSType t3}
34 | -> {auto 0 _ : Elem CacheQueryOptions (Types t3)}
36 | -> (request : HSum [Request, String])
37 | -> (options : Optional t3)
38 | -> JSIO (Promise Boolean)
39 | delete' a b c = primJS $
Cache.prim__delete a (toFFI b) (optUp c)
44 | -> (request : HSum [Request, String])
45 | -> JSIO (Promise Boolean)
46 | delete a b = primJS $
Cache.prim__delete a (toFFI b) undef
51 | {auto 0 _ : JSType t3}
52 | -> {auto 0 _ : Elem CacheQueryOptions (Types t3)}
54 | -> (request : Optional (HSum [Request, String]))
55 | -> (options : Optional t3)
56 | -> JSIO (Promise (Array Request))
57 | keys' a b c = primJS $
Cache.prim__keys a (toFFI b) (optUp c)
60 | keys : (obj : Cache) -> JSIO (Promise (Array Request))
61 | keys a = primJS $
Cache.prim__keys a undef undef
66 | {auto 0 _ : JSType t3}
67 | -> {auto 0 _ : Elem CacheQueryOptions (Types t3)}
69 | -> (request : Optional (HSum [Request, String]))
70 | -> (options : Optional t3)
71 | -> JSIO (Promise (Array Response))
72 | matchAll' a b c = primJS $
Cache.prim__matchAll a (toFFI b) (optUp c)
75 | matchAll : (obj : Cache) -> JSIO (Promise (Array Response))
76 | matchAll a = primJS $
Cache.prim__matchAll a undef undef
81 | {auto 0 _ : JSType t3}
82 | -> {auto 0 _ : Elem CacheQueryOptions (Types t3)}
84 | -> (request : HSum [Request, String])
85 | -> (options : Optional t3)
86 | -> JSIO (Promise (Union2 Response Undefined))
87 | match' a b c = primJS $
Cache.prim__match a (toFFI b) (optUp c)
92 | -> (request : HSum [Request, String])
93 | -> JSIO (Promise (Union2 Response Undefined))
94 | match a b = primJS $
Cache.prim__match a (toFFI b) undef
100 | -> (request : HSum [Request, String])
101 | -> (response : Response)
102 | -> JSIO (Promise Undefined)
103 | put a b c = primJS $
Cache.prim__put a (toFFI b) c
107 | namespace CacheStorage
111 | (obj : CacheStorage)
112 | -> (cacheName : String)
113 | -> JSIO (Promise Boolean)
114 | delete a b = primJS $
CacheStorage.prim__delete a b
118 | has : (obj : CacheStorage) -> (cacheName : String) -> JSIO (Promise Boolean)
119 | has a b = primJS $
CacheStorage.prim__has a b
123 | keys : (obj : CacheStorage) -> JSIO (Promise (Array String))
124 | keys a = primJS $
CacheStorage.prim__keys a
129 | {auto 0 _ : JSType t3}
130 | -> {auto 0 _ : Elem MultiCacheQueryOptions (Types t3)}
131 | -> (obj : CacheStorage)
132 | -> (request : HSum [Request, String])
133 | -> (options : Optional t3)
134 | -> JSIO (Promise (Union2 Response Undefined))
135 | match' a b c = primJS $
CacheStorage.prim__match a (toFFI b) (optUp c)
139 | (obj : CacheStorage)
140 | -> (request : HSum [Request, String])
141 | -> JSIO (Promise (Union2 Response Undefined))
142 | match a b = primJS $
CacheStorage.prim__match a (toFFI b) undef
146 | open_ : (obj : CacheStorage) -> (cacheName : String) -> JSIO (Promise Cache)
147 | open_ a b = primJS $
CacheStorage.prim__open a b
155 | {auto 0 _ : JSType t1}
156 | -> {auto 0 _ : Elem Client (Types t1)}
159 | frameType a = tryJS "Client.frameType" $
Client.prim__frameType (up a)
164 | {auto 0 _ : JSType t1}
165 | -> {auto 0 _ : Elem Client (Types t1)}
168 | id a = primJS $
Client.prim__id (up a)
173 | {auto 0 _ : JSType t1}
174 | -> {auto 0 _ : Elem Client (Types t1)}
177 | type a = tryJS "Client.type" $
Client.prim__type (up a)
182 | {auto 0 _ : JSType t1}
183 | -> {auto 0 _ : Elem Client (Types t1)}
186 | url a = primJS $
Client.prim__url (up a)
191 | {auto 0 _ : JSType t1}
192 | -> {auto 0 _ : Elem Client (Types t1)}
195 | -> (transfer : Array Object)
197 | postMessage a b c = primJS $
Client.prim__postMessage (up a) (toFFI b) c
202 | {auto 0 _ : JSType t1}
203 | -> {auto 0 _ : JSType t3}
204 | -> {auto 0 _ : Elem Client (Types t1)}
205 | -> {auto 0 _ : Elem PostMessageOptions (Types t3)}
208 | -> (options : Optional t3)
210 | postMessage1' a b c = primJS $
211 | Client.prim__postMessage1 (up a) (toFFI b) (optUp c)
215 | {auto 0 _ : JSType t1}
216 | -> {auto 0 _ : Elem Client (Types t1)}
220 | postMessage1 a b = primJS $
Client.prim__postMessage1 (up a) (toFFI b) undef
227 | claim : (obj : Clients) -> JSIO (Promise Undefined)
228 | claim a = primJS $
Clients.prim__claim a
235 | -> JSIO (Promise (Union2 Client Undefined))
236 | get a b = primJS $
Clients.prim__get a b
241 | {auto 0 _ : JSType t2}
242 | -> {auto 0 _ : Elem ClientQueryOptions (Types t2)}
244 | -> (options : Optional t2)
245 | -> JSIO (Promise (Array Client))
246 | matchAll' a b = primJS $
Clients.prim__matchAll a (optUp b)
249 | matchAll : (obj : Clients) -> JSIO (Promise (Array Client))
250 | matchAll a = primJS $
Clients.prim__matchAll a undef
257 | -> JSIO (Promise (Nullable WindowClient))
258 | openWindow a b = primJS $
Clients.prim__openWindow a b
262 | namespace ExtendableEvent
266 | {auto 0 _ : JSType t2}
267 | -> {auto 0 _ : Elem ExtendableEventInit (Types t2)}
269 | -> (eventInitDict : Optional t2)
270 | -> JSIO ExtendableEvent
271 | new' a b = primJS $
ExtendableEvent.prim__new a (optUp b)
274 | new : (type : String) -> JSIO ExtendableEvent
275 | new a = primJS $
ExtendableEvent.prim__new a undef
280 | {auto 0 _ : JSType t1}
281 | -> {auto 0 _ : Elem ExtendableEvent (Types t1)}
283 | -> (f : Promise AnyPtr)
285 | waitUntil a b = primJS $
ExtendableEvent.prim__waitUntil (up a) b
289 | namespace ExtendableMessageEvent
293 | {auto 0 _ : JSType t2}
294 | -> {auto 0 _ : Elem ExtendableMessageEventInit (Types t2)}
296 | -> (eventInitDict : Optional t2)
297 | -> JSIO ExtendableMessageEvent
298 | new' a b = primJS $
ExtendableMessageEvent.prim__new a (optUp b)
301 | new : (type : String) -> JSIO ExtendableMessageEvent
302 | new a = primJS $
ExtendableMessageEvent.prim__new a undef
306 | data_ : (obj : ExtendableMessageEvent) -> JSIO Any
307 | data_ a = tryJS "ExtendableMessageEvent.data_" $
308 | ExtendableMessageEvent.prim__data a
312 | lastEventId : (obj : ExtendableMessageEvent) -> JSIO String
313 | lastEventId a = primJS $
ExtendableMessageEvent.prim__lastEventId a
317 | origin : (obj : ExtendableMessageEvent) -> JSIO String
318 | origin a = primJS $
ExtendableMessageEvent.prim__origin a
322 | ports : (obj : ExtendableMessageEvent) -> JSIO (Array MessagePort)
323 | ports a = primJS $
ExtendableMessageEvent.prim__ports a
328 | (obj : ExtendableMessageEvent)
329 | -> JSIO (Maybe (HSum [Client, ServiceWorker, MessagePort]))
330 | source a = tryJS "ExtendableMessageEvent.source" $
331 | ExtendableMessageEvent.prim__source a
335 | namespace FetchEvent
339 | {auto 0 _ : JSType t2}
340 | -> {auto 0 _ : Elem FetchEventInit (Types t2)}
342 | -> (eventInitDict : t2)
344 | new a b = primJS $
FetchEvent.prim__new a (up b)
348 | clientId : (obj : FetchEvent) -> JSIO String
349 | clientId a = primJS $
FetchEvent.prim__clientId a
353 | handled : (obj : FetchEvent) -> JSIO (Promise Undefined)
354 | handled a = primJS $
FetchEvent.prim__handled a
358 | preloadResponse : (obj : FetchEvent) -> JSIO (Promise AnyPtr)
359 | preloadResponse a = primJS $
FetchEvent.prim__preloadResponse a
363 | replacesClientId : (obj : FetchEvent) -> JSIO String
364 | replacesClientId a = primJS $
FetchEvent.prim__replacesClientId a
368 | request : (obj : FetchEvent) -> JSIO Request
369 | request a = primJS $
FetchEvent.prim__request a
373 | resultingClientId : (obj : FetchEvent) -> JSIO String
374 | resultingClientId a = primJS $
FetchEvent.prim__resultingClientId a
378 | respondWith : (obj : FetchEvent) -> (r : Promise Response) -> JSIO ()
379 | respondWith a b = primJS $
FetchEvent.prim__respondWith a b
383 | namespace NavigationPreloadManager
386 | disable : (obj : NavigationPreloadManager) -> JSIO (Promise Undefined)
387 | disable a = primJS $
NavigationPreloadManager.prim__disable a
391 | enable : (obj : NavigationPreloadManager) -> JSIO (Promise Undefined)
392 | enable a = primJS $
NavigationPreloadManager.prim__enable a
397 | (obj : NavigationPreloadManager)
398 | -> JSIO (Promise NavigationPreloadState)
399 | getState a = primJS $
NavigationPreloadManager.prim__getState a
404 | (obj : NavigationPreloadManager)
405 | -> (value : ByteString)
406 | -> JSIO (Promise Undefined)
407 | setHeaderValue a b = primJS $
408 | NavigationPreloadManager.prim__setHeaderValue a b
412 | namespace ServiceWorker
415 | onstatechange : ServiceWorker -> Attribute False Maybe EventHandlerNonNull
416 | onstatechange v = fromNullablePrim
417 | "ServiceWorker.getonstatechange"
418 | prim__onstatechange
419 | prim__setOnstatechange
424 | scriptURL : (obj : ServiceWorker) -> JSIO String
425 | scriptURL a = primJS $
ServiceWorker.prim__scriptURL a
429 | state : (obj : ServiceWorker) -> JSIO ServiceWorkerState
430 | state a = tryJS "ServiceWorker.state" $
ServiceWorker.prim__state a
435 | (obj : ServiceWorker)
437 | -> (transfer : Array Object)
439 | postMessage a b c = primJS $
ServiceWorker.prim__postMessage a (toFFI b) c
444 | {auto 0 _ : JSType t3}
445 | -> {auto 0 _ : Elem PostMessageOptions (Types t3)}
446 | -> (obj : ServiceWorker)
448 | -> (options : Optional t3)
450 | postMessage1' a b c = primJS $
451 | ServiceWorker.prim__postMessage1 a (toFFI b) (optUp c)
454 | postMessage1 : (obj : ServiceWorker) -> (message : Any) -> JSIO ()
455 | postMessage1 a b = primJS $
ServiceWorker.prim__postMessage1 a (toFFI b) undef
459 | namespace ServiceWorkerContainer
462 | controller : (obj : ServiceWorkerContainer) -> JSIO (Maybe ServiceWorker)
463 | controller a = tryJS "ServiceWorkerContainer.controller" $
464 | ServiceWorkerContainer.prim__controller a
468 | oncontrollerchange :
469 | ServiceWorkerContainer
470 | -> Attribute False Maybe EventHandlerNonNull
471 | oncontrollerchange v = fromNullablePrim
472 | "ServiceWorkerContainer.getoncontrollerchange"
473 | prim__oncontrollerchange
474 | prim__setOncontrollerchange
480 | ServiceWorkerContainer
481 | -> Attribute False Maybe EventHandlerNonNull
482 | onmessage v = fromNullablePrim
483 | "ServiceWorkerContainer.getonmessage"
491 | ServiceWorkerContainer
492 | -> Attribute False Maybe EventHandlerNonNull
493 | onmessageerror v = fromNullablePrim
494 | "ServiceWorkerContainer.getonmessageerror"
495 | prim__onmessageerror
496 | prim__setOnmessageerror
502 | (obj : ServiceWorkerContainer)
503 | -> JSIO (Promise ServiceWorkerRegistration)
504 | ready a = primJS $
ServiceWorkerContainer.prim__ready a
509 | (obj : ServiceWorkerContainer)
510 | -> (clientURL : Optional String)
511 | -> JSIO (Promise (Union2 ServiceWorkerRegistration Undefined))
512 | getRegistration' a b = primJS $
513 | ServiceWorkerContainer.prim__getRegistration a (toFFI b)
517 | (obj : ServiceWorkerContainer)
518 | -> JSIO (Promise (Union2 ServiceWorkerRegistration Undefined))
519 | getRegistration a = primJS $
520 | ServiceWorkerContainer.prim__getRegistration a undef
525 | (obj : ServiceWorkerContainer)
526 | -> JSIO (Promise (Array ServiceWorkerRegistration))
527 | getRegistrations a = primJS $
ServiceWorkerContainer.prim__getRegistrations a
532 | {auto 0 _ : JSType t3}
533 | -> {auto 0 _ : Elem RegistrationOptions (Types t3)}
534 | -> (obj : ServiceWorkerContainer)
535 | -> (scriptURL : String)
536 | -> (options : Optional t3)
537 | -> JSIO (Promise ServiceWorkerRegistration)
538 | register' a b c = primJS $
ServiceWorkerContainer.prim__register a b (optUp c)
542 | (obj : ServiceWorkerContainer)
543 | -> (scriptURL : String)
544 | -> JSIO (Promise ServiceWorkerRegistration)
545 | register a b = primJS $
ServiceWorkerContainer.prim__register a b undef
549 | startMessages : (obj : ServiceWorkerContainer) -> JSIO ()
550 | startMessages a = primJS $
ServiceWorkerContainer.prim__startMessages a
554 | namespace ServiceWorkerGlobalScope
557 | clients : (obj : ServiceWorkerGlobalScope) -> JSIO Clients
558 | clients a = primJS $
ServiceWorkerGlobalScope.prim__clients a
563 | ServiceWorkerGlobalScope
564 | -> Attribute False Maybe EventHandlerNonNull
565 | onactivate v = fromNullablePrim
566 | "ServiceWorkerGlobalScope.getonactivate"
568 | prim__setOnactivate
574 | ServiceWorkerGlobalScope
575 | -> Attribute False Maybe EventHandlerNonNull
576 | onfetch v = fromNullablePrim
577 | "ServiceWorkerGlobalScope.getonfetch"
585 | ServiceWorkerGlobalScope
586 | -> Attribute False Maybe EventHandlerNonNull
587 | oninstall v = fromNullablePrim
588 | "ServiceWorkerGlobalScope.getoninstall"
596 | ServiceWorkerGlobalScope
597 | -> Attribute False Maybe EventHandlerNonNull
598 | onmessage v = fromNullablePrim
599 | "ServiceWorkerGlobalScope.getonmessage"
607 | ServiceWorkerGlobalScope
608 | -> Attribute False Maybe EventHandlerNonNull
609 | onmessageerror v = fromNullablePrim
610 | "ServiceWorkerGlobalScope.getonmessageerror"
611 | prim__onmessageerror
612 | prim__setOnmessageerror
618 | (obj : ServiceWorkerGlobalScope)
619 | -> JSIO ServiceWorkerRegistration
620 | registration a = primJS $
ServiceWorkerGlobalScope.prim__registration a
624 | serviceWorker : (obj : ServiceWorkerGlobalScope) -> JSIO ServiceWorker
625 | serviceWorker a = primJS $
ServiceWorkerGlobalScope.prim__serviceWorker a
629 | skipWaiting : (obj : ServiceWorkerGlobalScope) -> JSIO (Promise Undefined)
630 | skipWaiting a = primJS $
ServiceWorkerGlobalScope.prim__skipWaiting a
634 | namespace ServiceWorkerRegistration
637 | active : (obj : ServiceWorkerRegistration) -> JSIO (Maybe ServiceWorker)
638 | active a = tryJS "ServiceWorkerRegistration.active" $
639 | ServiceWorkerRegistration.prim__active a
643 | installing : (obj : ServiceWorkerRegistration) -> JSIO (Maybe ServiceWorker)
644 | installing a = tryJS "ServiceWorkerRegistration.installing" $
645 | ServiceWorkerRegistration.prim__installing a
649 | navigationPreload :
650 | (obj : ServiceWorkerRegistration)
651 | -> JSIO NavigationPreloadManager
652 | navigationPreload a = primJS $
653 | ServiceWorkerRegistration.prim__navigationPreload a
658 | ServiceWorkerRegistration
659 | -> Attribute False Maybe EventHandlerNonNull
660 | onupdatefound v = fromNullablePrim
661 | "ServiceWorkerRegistration.getonupdatefound"
662 | prim__onupdatefound
663 | prim__setOnupdatefound
668 | scope : (obj : ServiceWorkerRegistration) -> JSIO String
669 | scope a = primJS $
ServiceWorkerRegistration.prim__scope a
674 | (obj : ServiceWorkerRegistration)
675 | -> JSIO ServiceWorkerUpdateViaCache
676 | updateViaCache a = tryJS "ServiceWorkerRegistration.updateViaCache" $
677 | ServiceWorkerRegistration.prim__updateViaCache a
681 | waiting : (obj : ServiceWorkerRegistration) -> JSIO (Maybe ServiceWorker)
682 | waiting a = tryJS "ServiceWorkerRegistration.waiting" $
683 | ServiceWorkerRegistration.prim__waiting a
687 | unregister : (obj : ServiceWorkerRegistration) -> JSIO (Promise Boolean)
688 | unregister a = primJS $
ServiceWorkerRegistration.prim__unregister a
692 | update : (obj : ServiceWorkerRegistration) -> JSIO (Promise Undefined)
693 | update a = primJS $
ServiceWorkerRegistration.prim__update a
697 | namespace WindowClient
700 | ancestorOrigins : (obj : WindowClient) -> JSIO (Array String)
701 | ancestorOrigins a = primJS $
WindowClient.prim__ancestorOrigins a
705 | focused : (obj : WindowClient) -> JSIO Bool
706 | focused a = tryJS "WindowClient.focused" $
WindowClient.prim__focused a
710 | visibilityState : (obj : WindowClient) -> JSIO VisibilityState
711 | visibilityState a = tryJS "WindowClient.visibilityState" $
712 | WindowClient.prim__visibilityState a
716 | focus : (obj : WindowClient) -> JSIO (Promise WindowClient)
717 | focus a = primJS $
WindowClient.prim__focus a
722 | (obj : WindowClient)
724 | -> JSIO (Promise (Nullable WindowClient))
725 | navigate a b = primJS $
WindowClient.prim__navigate a b
735 | namespace CacheQueryOptions
739 | (ignoreSearch : Optional Bool)
740 | -> (ignoreMethod : Optional Bool)
741 | -> (ignoreVary : Optional Bool)
742 | -> JSIO CacheQueryOptions
743 | new' a b c = primJS $
744 | CacheQueryOptions.prim__new (toFFI a) (toFFI b) (toFFI c)
747 | new : JSIO CacheQueryOptions
748 | new = primJS $
CacheQueryOptions.prim__new undef undef undef
753 | {auto 0 _ : JSType t}
754 | -> {auto 0 _ : Elem CacheQueryOptions (Types t)}
756 | -> Attribute True Optional Bool
757 | ignoreMethod v = fromUndefOrPrim
758 | "CacheQueryOptions.getignoreMethod"
760 | prim__setIgnoreMethod
762 | (v :> CacheQueryOptions)
767 | {auto 0 _ : JSType t}
768 | -> {auto 0 _ : Elem CacheQueryOptions (Types t)}
770 | -> Attribute True Optional Bool
771 | ignoreSearch v = fromUndefOrPrim
772 | "CacheQueryOptions.getignoreSearch"
774 | prim__setIgnoreSearch
776 | (v :> CacheQueryOptions)
781 | {auto 0 _ : JSType t}
782 | -> {auto 0 _ : Elem CacheQueryOptions (Types t)}
784 | -> Attribute True Optional Bool
785 | ignoreVary v = fromUndefOrPrim
786 | "CacheQueryOptions.getignoreVary"
788 | prim__setIgnoreVary
790 | (v :> CacheQueryOptions)
794 | namespace ClientQueryOptions
798 | (includeUncontrolled : Optional Bool)
799 | -> (type : Optional ClientType)
800 | -> JSIO ClientQueryOptions
801 | new' a b = primJS $
ClientQueryOptions.prim__new (toFFI a) (toFFI b)
804 | new : JSIO ClientQueryOptions
805 | new = primJS $
ClientQueryOptions.prim__new undef undef
809 | includeUncontrolled :
810 | {auto 0 _ : JSType t}
811 | -> {auto 0 _ : Elem ClientQueryOptions (Types t)}
813 | -> Attribute True Optional Bool
814 | includeUncontrolled v = fromUndefOrPrim
815 | "ClientQueryOptions.getincludeUncontrolled"
816 | prim__includeUncontrolled
817 | prim__setIncludeUncontrolled
819 | (v :> ClientQueryOptions)
824 | {auto 0 _ : JSType t}
825 | -> {auto 0 _ : Elem ClientQueryOptions (Types t)}
827 | -> Attribute False Optional ClientType
828 | type v = fromUndefOrPrimNoDefault
829 | "ClientQueryOptions.gettype"
832 | (v :> ClientQueryOptions)
836 | namespace ExtendableEventInit
839 | new : JSIO ExtendableEventInit
840 | new = primJS $
ExtendableEventInit.prim__new
844 | namespace ExtendableMessageEventInit
848 | (data_ : Optional Any)
849 | -> (origin : Optional String)
850 | -> (lastEventId : Optional String)
851 | -> (source : Optional (Maybe (HSum [Client, ServiceWorker, MessagePort])))
852 | -> (ports : Optional (Array MessagePort))
853 | -> JSIO ExtendableMessageEventInit
854 | new' a b c d e = primJS $
855 | ExtendableMessageEventInit.prim__new
863 | new : JSIO ExtendableMessageEventInit
865 | ExtendableMessageEventInit.prim__new undef undef undef undef undef
870 | {auto 0 _ : JSType t}
871 | -> {auto 0 _ : Elem ExtendableMessageEventInit (Types t)}
873 | -> Attribute True Optional Any
874 | data_ v = fromUndefOrPrim
875 | "ExtendableMessageEventInit.getdata"
878 | (MkAny $
null {a = ()})
879 | (v :> ExtendableMessageEventInit)
884 | {auto 0 _ : JSType t}
885 | -> {auto 0 _ : Elem ExtendableMessageEventInit (Types t)}
887 | -> Attribute True Optional String
888 | lastEventId v = fromUndefOrPrim
889 | "ExtendableMessageEventInit.getlastEventId"
891 | prim__setLastEventId
893 | (v :> ExtendableMessageEventInit)
898 | {auto 0 _ : JSType t}
899 | -> {auto 0 _ : Elem ExtendableMessageEventInit (Types t)}
901 | -> Attribute True Optional String
902 | origin v = fromUndefOrPrim
903 | "ExtendableMessageEventInit.getorigin"
907 | (v :> ExtendableMessageEventInit)
912 | {auto 0 _ : JSType t}
913 | -> {auto 0 _ : Elem ExtendableMessageEventInit (Types t)}
915 | -> Attribute False Optional (Array MessagePort)
916 | ports v = fromUndefOrPrimNoDefault
917 | "ExtendableMessageEventInit.getports"
920 | (v :> ExtendableMessageEventInit)
925 | {auto 0 _ : JSType t}
926 | -> {auto 0 _ : Elem ExtendableMessageEventInit (Types t)}
928 | -> Attribute True Optional (Maybe
929 | (HSum [Client, ServiceWorker, MessagePort]))
930 | source v = fromUndefOrPrim
931 | "ExtendableMessageEventInit.getsource"
935 | (v :> ExtendableMessageEventInit)
939 | namespace FetchEventInit
943 | (request : Request)
944 | -> (preloadResponse : Optional (Promise AnyPtr))
945 | -> (clientId : Optional String)
946 | -> (resultingClientId : Optional String)
947 | -> (replacesClientId : Optional String)
948 | -> (handled : Optional (Promise Undefined))
949 | -> JSIO FetchEventInit
950 | new' a b c d e f = primJS $
951 | FetchEventInit.prim__new a (toFFI b) (toFFI c) (toFFI d) (toFFI e) (toFFI f)
954 | new : (request : Request) -> JSIO FetchEventInit
955 | new a = primJS $
FetchEventInit.prim__new a undef undef undef undef undef
960 | {auto 0 _ : JSType t}
961 | -> {auto 0 _ : Elem FetchEventInit (Types t)}
963 | -> Attribute True Optional String
964 | clientId v = fromUndefOrPrim
965 | "FetchEventInit.getclientId"
969 | (v :> FetchEventInit)
974 | {auto 0 _ : JSType t}
975 | -> {auto 0 _ : Elem FetchEventInit (Types t)}
977 | -> Attribute False Optional (Promise Undefined)
978 | handled v = fromUndefOrPrimNoDefault
979 | "FetchEventInit.gethandled"
982 | (v :> FetchEventInit)
987 | {auto 0 _ : JSType t}
988 | -> {auto 0 _ : Elem FetchEventInit (Types t)}
990 | -> Attribute False Optional (Promise AnyPtr)
991 | preloadResponse v = fromUndefOrPrimNoDefault
992 | "FetchEventInit.getpreloadResponse"
993 | prim__preloadResponse
994 | prim__setPreloadResponse
995 | (v :> FetchEventInit)
1001 | -> {auto 0 _ : Elem FetchEventInit (Types t)}
1003 | -> Attribute True Optional String
1004 | replacesClientId v = fromUndefOrPrim
1005 | "FetchEventInit.getreplacesClientId"
1007 | prim__setReplacesClientId
1015 | -> {auto 0 _ : Elem FetchEventInit (Types t)}
1017 | -> Attribute True Prelude.id Request
1019 | "FetchEventInit.getrequest"
1028 | -> {auto 0 _ : Elem FetchEventInit (Types t)}
1030 | -> Attribute True Optional String
1031 | resultingClientId v = fromUndefOrPrim
1032 | "FetchEventInit.getresultingClientId"
1033 | prim__resultingClientId
1034 | prim__setResultingClientId
1040 | namespace MultiCacheQueryOptions
1043 | new' : (cacheName : Optional String) -> JSIO MultiCacheQueryOptions
1044 | new' a = primJS $
MultiCacheQueryOptions.prim__new (toFFI a)
1047 | new : JSIO MultiCacheQueryOptions
1048 | new = primJS $
MultiCacheQueryOptions.prim__new undef
1054 | -> {auto 0 _ : Elem MultiCacheQueryOptions (Types t)}
1056 | -> Attribute False Optional String
1057 | cacheName v = fromUndefOrPrimNoDefault
1058 | "MultiCacheQueryOptions.getcacheName"
1061 | (v :> MultiCacheQueryOptions)
1065 | namespace NavigationPreloadState
1069 | (enabled : Optional Bool)
1070 | -> (headerValue : Optional ByteString)
1071 | -> JSIO NavigationPreloadState
1072 | new' a b = primJS $
NavigationPreloadState.prim__new (toFFI a) (toFFI b)
1075 | new : JSIO NavigationPreloadState
1076 | new = primJS $
NavigationPreloadState.prim__new undef undef
1082 | -> {auto 0 _ : Elem NavigationPreloadState (Types t)}
1084 | -> Attribute True Optional Bool
1085 | enabled v = fromUndefOrPrim
1086 | "NavigationPreloadState.getenabled"
1090 | (v :> NavigationPreloadState)
1096 | -> {auto 0 _ : Elem NavigationPreloadState (Types t)}
1098 | -> Attribute False Optional ByteString
1099 | headerValue v = fromUndefOrPrimNoDefault
1100 | "NavigationPreloadState.getheaderValue"
1103 | (v :> NavigationPreloadState)
1107 | namespace RegistrationOptions
1111 | (scope : Optional String)
1112 | -> (type : Optional WorkerType)
1113 | -> (updateViaCache : Optional ServiceWorkerUpdateViaCache)
1114 | -> JSIO RegistrationOptions
1116 | RegistrationOptions.prim__new (toFFI a) (toFFI b) (toFFI c)
1119 | new : JSIO RegistrationOptions
1120 | new = primJS $
RegistrationOptions.prim__new undef undef undef
1126 | -> {auto 0 _ : Elem RegistrationOptions (Types t)}
1128 | -> Attribute False Optional String
1129 | scope v = fromUndefOrPrimNoDefault
1130 | "RegistrationOptions.getscope"
1133 | (v :> RegistrationOptions)
1139 | -> {auto 0 _ : Elem RegistrationOptions (Types t)}
1141 | -> Attribute False Optional WorkerType
1142 | type v = fromUndefOrPrimNoDefault
1143 | "RegistrationOptions.gettype"
1146 | (v :> RegistrationOptions)
1152 | -> {auto 0 _ : Elem RegistrationOptions (Types t)}
1154 | -> Attribute False Optional ServiceWorkerUpdateViaCache
1155 | updateViaCache v = fromUndefOrPrimNoDefault
1156 | "RegistrationOptions.getupdateViaCache"
1158 | prim__setUpdateViaCache
1159 | (v :> RegistrationOptions)