This repository has been archived by the owner on Feb 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
/
Fable.Import.Browser.fs
12263 lines (11150 loc) · 811 KB
/
Fable.Import.Browser.fs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
namespace Fable.Import
open System
open Fable.Import.JS
open Fable.Core
open System
module Browser =
type [<AllowNullLiteral>] ActivateEvent =
inherit ExtendableEvent
and [<AllowNullLiteral>] Algorithm =
abstract name: string option with get, set
and [<AllowNullLiteral>] AriaRequestEventInit =
inherit EventInit
abstract attributeName: string option with get, set
abstract attributeValue: string option with get, set
and [<AllowNullLiteral>] Body =
abstract bodyUsed: bool with get, set
abstract arrayBuffer: unit -> Promise<ArrayBuffer>
abstract blob: unit -> Promise<Blob>
abstract formData: unit -> Promise<FormData>
abstract json: unit -> Promise<obj option>
abstract text: unit -> Promise<string>
and [<AllowNullLiteral>] Cache =
abstract add: request: Request -> Promise<unit>
abstract addAll: requestArray: Array<Request> -> Promise<unit>
abstract delete: request: Request * ?options: CacheStorageOptions -> Promise<bool>
abstract keys: ?request: Request * ?options: CacheStorageOptions -> Promise<Array<string>>
abstract ``match``: request: Request * ?options: CacheStorageOptions -> Promise<Response>
abstract matchAll: request: Request * ?options: CacheStorageOptions -> Promise<Array<Response>>
abstract put: request: U2<Request, string> * response: Response -> Promise<unit>
and [<AllowNullLiteral>] CacheStorage =
abstract delete: cacheName: string -> Promise<bool>
abstract has: cacheName: string -> Promise<bool>
abstract keys: unit -> Promise<Array<string>>
abstract ``match``: request: Request * ?options: CacheStorageOptions -> Promise<Response>
abstract ``open``: cacheName: string -> Promise<Cache>
and [<AllowNullLiteral>] CacheStorageOptions =
abstract cacheName: string option with get, set
abstract ignoreMethod: bool option with get, set
abstract ignoreSearch: bool option with get, set
abstract ignoreVary: bool option with get, set
and [<AllowNullLiteral>] ClipboardEventInit =
inherit EventInit
abstract data: string option with get, set
abstract dataType: string option with get, set
and [<AllowNullLiteral>] CommandEventInit =
inherit EventInit
abstract commandName: string option with get, set
abstract detail: string option with get, set
and [<AllowNullLiteral>] CompositionEventInit =
inherit UIEventInit
abstract data: string option with get, set
and [<AllowNullLiteral>] ConfirmSiteSpecificExceptionsInformation =
inherit ExceptionInformation
abstract arrayOfDomainStrings: ResizeArray<string> option with get, set
and [<AllowNullLiteral>] CustomEventInit =
inherit EventInit
abstract detail: obj option with get, set
and [<AllowNullLiteral>] DeviceAccelerationDict =
abstract x: float option with get, set
abstract y: float option with get, set
abstract z: float option with get, set
and [<AllowNullLiteral>] DeviceRotationRateDict =
abstract alpha: float option with get, set
abstract beta: float option with get, set
abstract gamma: float option with get, set
and [<AllowNullLiteral>] EventInit =
abstract bubbles: bool option with get, set
abstract cancelable: bool option with get, set
and [<AllowNullLiteral>] ExceptionInformation =
abstract domain: string option with get, set
and [<AllowNullLiteral>] ExtendableEvent =
inherit Event
abstract waitUntil: fn: Promise<obj option> -> unit
and [<AllowNullLiteral>] FocusEventInit =
inherit UIEventInit
abstract relatedTarget: EventTarget option with get, set
and [<AllowNullLiteral>] HashChangeEventInit =
inherit EventInit
abstract newURL: string option with get, set
abstract oldURL: string option with get, set
and [<AllowNullLiteral>] Headers =
abstract append: name: string * value: string -> unit
abstract delete: name: string -> unit
abstract entries: unit -> Array<Array<string>>
abstract get: name: string -> string
abstract getAll: name: string -> Array<string>
abstract has: name: string -> bool
abstract keys: unit -> Array<string>
abstract set: name: string * value: string -> unit
abstract values: unit -> Array<string>
and [<AllowNullLiteral>] HeadersStatic =
[<Emit "new $0($1...)">] abstract Create: ?init: obj option -> Headers
and [<AllowNullLiteral>] IExports =
abstract Headers: HeadersStatic
abstract Request: RequestStatic
abstract Response: ResponseStatic
abstract fetch: request: U2<Request, string> -> Promise<Response>
abstract skipWaiting: unit -> unit
and [<AllowNullLiteral>] KeyAlgorithm =
abstract name: string option with get, set
and [<AllowNullLiteral>] KeyboardEventInit =
inherit SharedKeyboardAndMouseEventInit
abstract key: string option with get, set
abstract location: float option with get, set
abstract repeat: bool option with get, set
and [<AllowNullLiteral>] MouseEventInit =
inherit SharedKeyboardAndMouseEventInit
abstract screenX: float option with get, set
abstract screenY: float option with get, set
abstract clientX: float option with get, set
abstract clientY: float option with get, set
abstract button: float option with get, set
abstract buttons: float option with get, set
abstract relatedTarget: EventTarget option with get, set
and [<AllowNullLiteral>] MsZoomToOptions =
abstract contentX: float option with get, set
abstract contentY: float option with get, set
abstract viewportX: string option with get, set
abstract viewportY: string option with get, set
abstract scaleFactor: float option with get, set
abstract animate: string option with get, set
and [<AllowNullLiteral>] MutationObserverInit =
abstract childList: bool option with get, set
abstract attributes: bool option with get, set
abstract characterData: bool option with get, set
abstract subtree: bool option with get, set
abstract attributeOldValue: bool option with get, set
abstract characterDataOldValue: bool option with get, set
abstract attributeFilter: ResizeArray<string> option with get, set
and [<AllowNullLiteral>] ObjectURLOptions =
abstract oneTimeOnly: bool option with get, set
and [<AllowNullLiteral>] PointerEventInit =
inherit MouseEventInit
abstract pointerId: float option with get, set
abstract width: float option with get, set
abstract height: float option with get, set
abstract pressure: float option with get, set
abstract tiltX: float option with get, set
abstract tiltY: float option with get, set
abstract pointerType: string option with get, set
abstract isPrimary: bool option with get, set
and [<AllowNullLiteral>] PositionOptions =
abstract enableHighAccuracy: bool option with get, set
abstract timeout: float option with get, set
abstract maximumAge: float option with get, set
and [<AllowNullLiteral>] SharedKeyboardAndMouseEventInit =
inherit UIEventInit
abstract ctrlKey: bool option with get, set
abstract shiftKey: bool option with get, set
abstract altKey: bool option with get, set
abstract metaKey: bool option with get, set
abstract keyModifierStateAltGraph: bool option with get, set
abstract keyModifierStateCapsLock: bool option with get, set
abstract keyModifierStateFn: bool option with get, set
abstract keyModifierStateFnLock: bool option with get, set
abstract keyModifierStateHyper: bool option with get, set
abstract keyModifierStateNumLock: bool option with get, set
abstract keyModifierStateOS: bool option with get, set
abstract keyModifierStateScrollLock: bool option with get, set
abstract keyModifierStateSuper: bool option with get, set
abstract keyModifierStateSymbol: bool option with get, set
abstract keyModifierStateSymbolLock: bool option with get, set
and [<AllowNullLiteral>] StoreExceptionsInformation =
inherit ExceptionInformation
abstract siteName: string option with get, set
abstract explanationString: string option with get, set
abstract detailURI: string option with get, set
and [<AllowNullLiteral>] StoreSiteSpecificExceptionsInformation =
inherit StoreExceptionsInformation
abstract arrayOfDomainStrings: ResizeArray<string> option with get, set
and [<AllowNullLiteral>] UIEventInit =
inherit EventInit
abstract view: Window option with get, set
abstract detail: float option with get, set
and [<AllowNullLiteral>] WebGLContextAttributes =
abstract alpha: bool option with get, set
abstract depth: bool option with get, set
abstract stencil: bool option with get, set
abstract antialias: bool option with get, set
abstract premultipliedAlpha: bool option with get, set
abstract preserveDrawingBuffer: bool option with get, set
and [<AllowNullLiteral>] WebGLContextEventInit =
inherit EventInit
abstract statusMessage: string option with get, set
and [<AllowNullLiteral>] WheelEventInit =
inherit MouseEventInit
abstract deltaX: float option with get, set
abstract deltaY: float option with get, set
abstract deltaZ: float option with get, set
abstract deltaMode: float option with get, set
and EventListener = (Event -> unit)
and [<AllowNullLiteral>] ANGLE_instanced_arrays =
abstract VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: float with get, set
abstract drawArraysInstancedANGLE: mode: float * first: float * count: float * primcount: float -> unit
abstract drawElementsInstancedANGLE: mode: float * count: float * ``type``: float * offset: float * primcount: float -> unit
abstract vertexAttribDivisorANGLE: index: float * divisor: float -> unit
and [<AllowNullLiteral>] ANGLE_instanced_arraysType =
abstract prototype: ANGLE_instanced_arrays with get, set
abstract VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: float with get, set
[<Emit("new $0($1...)")>] abstract Create: unit -> ANGLE_instanced_arrays
and [<AllowNullLiteral>] AnalyserNode =
inherit AudioNode
abstract fftSize: int with get, set
abstract frequencyBinCount: int with get
abstract maxDecibels: float with get, set
abstract minDecibels: float with get, set
abstract smoothingTimeConstant: float with get, set
abstract getByteFrequencyData: array: Uint8Array -> unit
abstract getByteTimeDomainData: array: Uint8Array -> unit
abstract getFloatFrequencyData: array: Float32Array -> unit
abstract getFloatTimeDomainData: array: Float32Array -> unit
and [<AllowNullLiteral>] AnalyserNodeType =
abstract prototype: AnalyserNode with get, set
[<Emit("new $0($1...)")>] abstract Create: unit -> AnalyserNode
and [<AllowNullLiteral>] AnimationEvent =
inherit Event
abstract animationName: string with get, set
abstract elapsedTime: float with get, set
abstract initAnimationEvent: typeArg: string * canBubbleArg: bool * cancelableArg: bool * animationNameArg: string * elapsedTimeArg: float -> unit
and [<AllowNullLiteral>] AnimationEventType =
abstract prototype: AnimationEvent with get, set
[<Emit("new $0($1...)")>] abstract Create: unit -> AnimationEvent
and [<AllowNullLiteral>] ApplicationCache =
inherit EventTarget
abstract oncached: (Event -> 'Out) with get, set
abstract onchecking: (Event -> 'Out) with get, set
abstract ondownloading: (Event -> 'Out) with get, set
abstract onerror: (Event -> 'Out) with get, set
abstract onnoupdate: (Event -> 'Out) with get, set
abstract onobsolete: (Event -> 'Out) with get, set
abstract onprogress: (ProgressEvent -> 'Out) with get, set
abstract onupdateready: (Event -> 'Out) with get, set
abstract status: float with get, set
abstract CHECKING: float with get, set
abstract DOWNLOADING: float with get, set
abstract IDLE: float with get, set
abstract OBSOLETE: float with get, set
abstract UNCACHED: float with get, set
abstract UPDATEREADY: float with get, set
abstract abort: unit -> unit
abstract swapCache: unit -> unit
abstract update: unit -> unit
[<Emit("$0.addEventListener('cached',$1...)")>] abstract addEventListener_cached: listener: (Event -> 'Out) * ?useCapture: bool -> unit
[<Emit("$0.addEventListener('checking',$1...)")>] abstract addEventListener_checking: listener: (Event -> 'Out) * ?useCapture: bool -> unit
[<Emit("$0.addEventListener('downloading',$1...)")>] abstract addEventListener_downloading: listener: (Event -> 'Out) * ?useCapture: bool -> unit
[<Emit("$0.addEventListener('error',$1...)")>] abstract addEventListener_error: listener: (ErrorEvent -> 'Out) * ?useCapture: bool -> unit
[<Emit("$0.addEventListener('noupdate',$1...)")>] abstract addEventListener_noupdate: listener: (Event -> 'Out) * ?useCapture: bool -> unit
[<Emit("$0.addEventListener('obsolete',$1...)")>] abstract addEventListener_obsolete: listener: (Event -> 'Out) * ?useCapture: bool -> unit
[<Emit("$0.addEventListener('progress',$1...)")>] abstract addEventListener_progress: listener: (ProgressEvent -> 'Out) * ?useCapture: bool -> unit
[<Emit("$0.addEventListener('updateready',$1...)")>] abstract addEventListener_updateready: listener: (Event -> 'Out) * ?useCapture: bool -> unit
abstract addEventListener: ``type``: string * listener: EventListenerOrEventListenerObject * ?useCapture: bool -> unit
and [<AllowNullLiteral>] ApplicationCacheType =
abstract prototype: ApplicationCache with get, set
abstract CHECKING: float with get, set
abstract DOWNLOADING: float with get, set
abstract IDLE: float with get, set
abstract OBSOLETE: float with get, set
abstract UNCACHED: float with get, set
abstract UPDATEREADY: float with get, set
[<Emit("new $0($1...)")>] abstract Create: unit -> ApplicationCache
and [<AllowNullLiteral>] AriaRequestEvent =
inherit Event
abstract attributeName: string with get, set
abstract attributeValue: string with get, set
and [<AllowNullLiteral>] AriaRequestEventType =
abstract prototype: AriaRequestEvent with get, set
[<Emit("new $0($1...)")>] abstract Create: ``type``: string * ?eventInitDict: AriaRequestEventInit -> AriaRequestEvent
and [<AllowNullLiteral>] Attr =
inherit Node
abstract name: string with get, set
abstract ownerElement: Element with get, set
abstract specified: bool with get, set
abstract value: string with get, set
and [<AllowNullLiteral>] AttrType =
abstract prototype: Attr with get, set
[<Emit("new $0($1...)")>] abstract Create: unit -> Attr
and [<AllowNullLiteral>] AudioBuffer =
abstract duration: float with get
abstract length: int with get
abstract numberOfChannels: int with get
abstract sampleRate: float with get
abstract getChannelData: channel: float -> Float32Array
abstract copyFromChannel: destination: Float32Array * channelNumber: int * ?startInChannel: int -> unit
abstract copyToChannel: source: Float32Array * channelNumber: int * ?startInChannel: int -> unit
and [<AllowNullLiteral>] AudioBufferType =
abstract prototype: AudioBuffer with get, set
[<Emit("new $0($1...)")>] abstract Create: unit -> AudioBuffer
and [<AllowNullLiteral>] AudioBufferSourceNode =
inherit AudioNode
abstract buffer: AudioBuffer with get, set
abstract loop: bool with get, set
abstract loopEnd: float with get, set
abstract loopStart: float with get, set
abstract onended: (Event -> 'Out) with get, set
abstract playbackRate: AudioParam with get
abstract detune: AudioParam with get
abstract start: ?``when``: float * ?offset: float * ?duration: float -> unit
abstract stop: ?``when``: float -> unit
[<Emit("$0.addEventListener('ended',$1...)")>] abstract addEventListener_ended: listener: (Event -> 'Out) * ?useCapture: bool -> unit
abstract addEventListener: ``type``: string * listener: EventListenerOrEventListenerObject * ?useCapture: bool -> unit
and [<AllowNullLiteral>] AudioBufferSourceNodeType =
abstract prototype: AudioBufferSourceNode with get, set
[<Emit("new $0($1...)")>] abstract Create: unit -> AudioBufferSourceNode
and [<AllowNullLiteral>] AudioContext =
inherit BaseAudioContext
abstract createMediaElementSource: mediaElement: HTMLMediaElement -> MediaElementAudioSourceNode
abstract createMediaStreamSource: mediaStream: MediaStream -> MediaStreamAudioSourceNode
abstract createMediaStreamDestination: unit -> MediaStreamAudioDestinationNode
and [<AllowNullLiteral>] AudioContextType =
abstract prototype: AudioContext with get, set
[<Emit("new $0($1...)")>] abstract Create: unit -> AudioContext
and [<AllowNullLiteral>] AudioContextOptions =
abstract playbackCategory : AudioContextPlaybackCategory
and [<StringEnum>] AudioContextPlaybackCategory =
| Balanced
| Interactive
| Playback
and [<StringEnum>] AudioContextState =
| Suspended
| Running
| Closed
and [<AllowNullLiteral>] AudioDestinationNode =
inherit AudioNode
abstract maxChannelCount: int with get
and [<AllowNullLiteral>] AudioDestinationNodeType =
abstract prototype: AudioDestinationNode with get, set
[<Emit("new $0($1...)")>] abstract Create: unit -> AudioDestinationNode
and [<AllowNullLiteral>] AudioListener =
abstract setOrientation: x: float * y: float * z: float * xUp: float * yUp: float * zUp: float -> unit
abstract setPosition: x: float * y: float * z: float -> unit
and [<AllowNullLiteral>] AudioListenerType =
abstract prototype: AudioListener with get, set
[<Emit("new $0($1...)")>] abstract Create: unit -> AudioListener
and [<AllowNullLiteral>] AudioNode =
inherit EventTarget
abstract channelCount: int with get,set
abstract channelCountMode: ChannelCountMode with get, set
abstract channelInterpretation: ChannelInterpretation with get, set
abstract context: AudioContext with get
abstract numberOfInputs: int with get
abstract numberOfOutputs: int with get
abstract connect: destination: AudioNode * ?output: int * ?input: int -> unit
abstract connect: destination: AudioParam * ?output: int -> unit
abstract disconnect: ?output: int -> unit
abstract disconnect: destination: AudioNode * ?output: int * ?input: int -> unit
abstract disconnect: destination: AudioParam * ?output: int -> unit
and [<AllowNullLiteral>] AudioNodeType =
abstract prototype: AudioNode with get, set
[<Emit("new $0($1...)")>] abstract Create: unit -> AudioNode
and [<AllowNullLiteral>] AudioParam =
abstract defaultValue: float with get
abstract value: float with get, set
abstract cancelScheduledValues: startTime: float -> AudioParam
abstract exponentialRampToValueAtTime: value: float * endTime: float -> AudioParam
abstract linearRampToValueAtTime: value: float * endTime: float -> AudioParam
abstract setTargetAtTime: target: float * startTime: float * timeConstant: float -> AudioParam
abstract setValueAtTime: value: float * startTime: float -> AudioParam
abstract setValueCurveAtTime: values: Float32Array * startTime: float * duration: float -> AudioParam
and [<AllowNullLiteral>] AudioParamType =
abstract prototype: AudioParam with get, set
[<Emit("new $0($1...)")>] abstract Create: unit -> AudioParam
and [<AllowNullLiteral>] AudioProcessingEvent =
inherit Event
abstract inputBuffer: AudioBuffer with get
abstract outputBuffer: AudioBuffer with get
abstract playbackTime: float with get
and [<AllowNullLiteral>] AudioProcessingEventType =
abstract prototype: AudioProcessingEvent with get, set
[<Emit("new $0($1...)")>] abstract Create: unit -> AudioProcessingEvent
and [<AllowNullLiteral>] AudioTrack =
abstract enabled: bool with get, set
abstract id: string with get, set
abstract kind: string with get, set
abstract label: string with get, set
abstract language: string with get, set
abstract sourceBuffer: SourceBuffer with get, set
and [<AllowNullLiteral>] AudioTrackType =
abstract prototype: AudioTrack with get, set
[<Emit("new $0($1...)")>] abstract Create: unit -> AudioTrack
and [<AllowNullLiteral>] AudioTrackList =
inherit EventTarget
abstract length: float with get, set
abstract onaddtrack: (TrackEvent -> 'Out) with get, set
abstract onchange: (Event -> 'Out) with get, set
abstract onremovetrack: (TrackEvent -> 'Out) with get, set
[<Emit("$0[$1]{{=$2}}")>] abstract Item: index: int -> AudioTrack with get, set
abstract getTrackById: id: string -> AudioTrack
abstract item: index: float -> AudioTrack
[<Emit("$0.addEventListener('addtrack',$1...)")>] abstract addEventListener_addtrack: listener: (TrackEvent -> 'Out) * ?useCapture: bool -> unit
[<Emit("$0.addEventListener('change',$1...)")>] abstract addEventListener_change: listener: (Event -> 'Out) * ?useCapture: bool -> unit
[<Emit("$0.addEventListener('removetrack',$1...)")>] abstract addEventListener_removetrack: listener: (TrackEvent -> 'Out) * ?useCapture: bool -> unit
abstract addEventListener: ``type``: string * listener: EventListenerOrEventListenerObject * ?useCapture: bool -> unit
and [<AllowNullLiteral>] AudioTrackListType =
abstract prototype: AudioTrackList with get, set
[<Emit("new $0($1...)")>] abstract Create: unit -> AudioTrackList
and [<AllowNullLiteral>] AudioWorker =
inherit Worker
abstract terminate: unit -> unit
abstract postMessage: message: obj * ?transfer: obj
abstract parameters: AudioWorkerParamDescriptor array with get
abstract onerror: (Event -> 'Out) with get, set
abstract onmessage: (Event -> 'Out) with get, set
abstract onloaded: (Event -> 'Out) with get, set
abstract createNode: numberOfInputs: int * numberOfOutputs: int -> AudioWorkerNode
abstract addParameter: name: string * defaultValue: float -> AudioParam
abstract removeParameter: name: string -> unit
and [<AllowNullLiteral>] AudioWorkerGlobalScope =
abstract sampleRate: float with get
abstract addParameter: name: string * defaultValue: float -> AudioParam
abstract removeParameter: name: string -> unit
abstract onnodecreate: (Event -> 'Out) with get, set
abstract parameters: AudioWorkerParamDescriptor array with get
and [<AllowNullLiteral>] AudioWorkerGlobalScopeType =
abstract prototype: AudioWorkerGlobalScope with get, set
[<Emit("new $0($1...)")>] abstract Create: unit -> AudioWorkerGlobalScope
and [<AllowNullLiteral>] AudioWorkerNode =
inherit AudioNode
abstract postMessage: message: obj * ?transfer: obj
abstract onmessage: (Event -> 'Out) with get, set
and [<AllowNullLiteral>] AudioWorkerNodeType =
abstract prototype: AudioWorkerNode with get, set
[<Emit("new $0($1...)")>] abstract Create: unit -> AudioWorkerNode
and [<AllowNullLiteral>] AudioWorkerNodeProcessor =
inherit EventTarget
abstract onmessage: (Event -> 'Out) with get, set
abstract postMessage: message: obj * ?transfer: obj
and [<AllowNullLiteral>] AudioWorkerNodeProcessorType =
abstract prototype: AudioWorkerNodeProcessor with get, set
[<Emit("new $0($1...)")>] abstract Create: unit -> AudioWorkerNodeProcessor
and [<AllowNullLiteral>] AudioWorkerParamDescriptor =
abstract name: string with get
abstract defaultValue: float with get
and [<AllowNullLiteral>] AudioWorkerType =
abstract prototype: AudioWorker with get, set
[<Emit("new $0($1...)")>] abstract Create: unit -> AudioWorker
and [<AllowNullLiteral>] BarProp =
abstract visible: bool with get, set
and [<AllowNullLiteral>] BarPropType =
abstract prototype: BarProp with get, set
[<Emit("new $0($1...)")>] abstract Create: unit -> BarProp
and [<AllowNullLiteral>] BaseAudioContext =
inherit EventTarget
abstract destination: AudioDestinationNode with get
abstract sampleRate: float with get
abstract currentTime: float with get
abstract listener: AudioListener with get
abstract suspend: unit -> Promise<unit>
abstract resume: unit -> Promise<unit>
abstract close: unit -> Promise<unit>
abstract state: AudioContextState with get
abstract onstatechange: (Event -> 'Out) with get, set
abstract createBuffer: numberOfChannels: int * length: int * sampleRate: float -> AudioBuffer
abstract decodeAudioData: audioData: ArrayBuffer * ?successCallback: DecodeSuccessCallback * ?errorCallback: DecodeErrorCallback -> unit
abstract createBufferSource: unit -> AudioBufferSourceNode
abstract createAudioWorker: string -> Promise<AudioWorker>
abstract createScriptProcessor: ?bufferSize: int * ?numberOfInputChannels: int * ?numberOfOutputChannels: int -> ScriptProcessorNode
abstract createAnalyser: unit -> AnalyserNode
abstract createGain: unit -> GainNode
abstract createDelay: ?maxDelayTime: float -> DelayNode
abstract createBiquadFilter: unit -> BiquadFilterNode
abstract createIIRFilter: feedforward: Float32Array * feedback: Float32Array -> IIRFilterNode
abstract createWaveShaper: unit -> WaveShaperNode
abstract createPanner: unit -> PannerNode
abstract createSpatialPanner: unit -> SpatialPannerNode
abstract createStereoPanner: unit -> StereoPannerNode
abstract createConvolver: unit -> ConvolverNode
abstract createChannelSplitter: ?numberOfOutputs: int -> ChannelSplitterNode
abstract createChannelMerger: ?numberOfInputs: int -> ChannelMergerNode
abstract createDynamicsCompressor: unit -> DynamicsCompressorNode
abstract createOscillator: unit -> OscillatorNode
abstract createPeriodicWave: real: Float32Array * imag: Float32Array * ?constraints: PeriodicWaveConstraints -> PeriodicWave
and [<AllowNullLiteral>] BaseAudioContextType =
abstract prototype: BaseAudioContext with get, set
[<Emit("new $0($1...)")>] abstract Create: ?contextOptions: AudioContextOptions -> AudioContext
and [<AllowNullLiteral>] BeforeUnloadEvent =
inherit Event
abstract returnValue: obj with get, set
and [<AllowNullLiteral>] BeforeUnloadEventType =
abstract prototype: BeforeUnloadEvent with get, set
[<Emit("new $0($1...)")>] abstract Create: unit -> BeforeUnloadEvent
and [<AllowNullLiteral>] BiquadFilterNode =
inherit AudioNode
abstract Q: AudioParam with get
abstract detune: AudioParam with get
abstract frequency: AudioParam with get
abstract gain: AudioParam with get
abstract ``type``: BiquadFilterType with get, set
abstract getFrequencyResponse: frequencyHz: Float32Array * magResponse: Float32Array * phaseResponse: Float32Array -> unit
and [<AllowNullLiteral>] BiquadFilterNodeType =
abstract prototype: BiquadFilterNode with get, set
[<Emit("new $0($1...)")>] abstract Create: unit -> BiquadFilterNode
and [<StringEnum>] BiquadFilterType =
| [<CompiledName("lowpass")>] LowPass
| [<CompiledName("highpass")>] HighPass
| [<CompiledName("bandpass")>] BandPass
| [<CompiledName("lowshelf")>] LowShelf
| [<CompiledName("highshelf")>] HighShelf
| Peaking
| Notch
| [<CompiledName("allpass")>] AllPass
and [<AllowNullLiteral>] Blob =
abstract size: float with get, set
abstract ``type``: string with get, set
abstract msClose: unit -> unit
abstract msDetachStream: unit -> obj
abstract slice: ?start: float * ?``end``: float * ?contentType: string -> Blob
and [<AllowNullLiteral>] BlobType =
abstract prototype: Blob with get, set
[<Emit("new $0($1...)")>] abstract Create: ?blobParts: ResizeArray<obj> * ?options: BlobPropertyBag -> Blob
and [<AllowNullLiteral>] CDATASection =
inherit Text
and [<AllowNullLiteral>] CDATASectionType =
abstract prototype: CDATASection with get, set
[<Emit("new $0($1...)")>] abstract Create: unit -> CDATASection
and [<AllowNullLiteral>] CSS =
abstract supports: property: string * ?value: string -> bool
and [<AllowNullLiteral>] CSSConditionRule =
inherit CSSGroupingRule
abstract conditionText: string with get, set
and [<AllowNullLiteral>] CSSConditionRuleType =
abstract prototype: CSSConditionRule with get, set
[<Emit("new $0($1...)")>] abstract Create: unit -> CSSConditionRule
and [<AllowNullLiteral>] CSSFontFaceRule =
inherit CSSRule
abstract style: CSSStyleDeclaration with get, set
and [<AllowNullLiteral>] CSSFontFaceRuleType =
abstract prototype: CSSFontFaceRule with get, set
[<Emit("new $0($1...)")>] abstract Create: unit -> CSSFontFaceRule
and [<AllowNullLiteral>] CSSGroupingRule =
inherit CSSRule
abstract cssRules: CSSRuleList with get, set
abstract deleteRule: ?index: float -> unit
abstract insertRule: rule: string * ?index: float -> float
and [<AllowNullLiteral>] CSSGroupingRuleType =
abstract prototype: CSSGroupingRule with get, set
[<Emit("new $0($1...)")>] abstract Create: unit -> CSSGroupingRule
and [<AllowNullLiteral>] CSSImportRule =
inherit CSSRule
abstract href: string with get, set
abstract media: MediaList with get, set
abstract styleSheet: CSSStyleSheet with get, set
and [<AllowNullLiteral>] CSSImportRuleType =
abstract prototype: CSSImportRule with get, set
[<Emit("new $0($1...)")>] abstract Create: unit -> CSSImportRule
and [<AllowNullLiteral>] CSSKeyframeRule =
inherit CSSRule
abstract keyText: string with get, set
abstract style: CSSStyleDeclaration with get, set
and [<AllowNullLiteral>] CSSKeyframeRuleType =
abstract prototype: CSSKeyframeRule with get, set
[<Emit("new $0($1...)")>] abstract Create: unit -> CSSKeyframeRule
and [<AllowNullLiteral>] CSSKeyframesRule =
inherit CSSRule
abstract cssRules: CSSRuleList with get, set
abstract name: string with get, set
abstract appendRule: rule: string -> unit
abstract deleteRule: rule: string -> unit
abstract findRule: rule: string -> CSSKeyframeRule
and [<AllowNullLiteral>] CSSKeyframesRuleType =
abstract prototype: CSSKeyframesRule with get, set
[<Emit("new $0($1...)")>] abstract Create: unit -> CSSKeyframesRule
and [<AllowNullLiteral>] CSSMediaRule =
inherit CSSConditionRule
abstract media: MediaList with get, set
and [<AllowNullLiteral>] CSSMediaRuleType =
abstract prototype: CSSMediaRule with get, set
[<Emit("new $0($1...)")>] abstract Create: unit -> CSSMediaRule
and [<AllowNullLiteral>] CSSNamespaceRule =
inherit CSSRule
abstract namespaceURI: string with get, set
abstract prefix: string with get, set
and [<AllowNullLiteral>] CSSNamespaceRuleType =
abstract prototype: CSSNamespaceRule with get, set
[<Emit("new $0($1...)")>] abstract Create: unit -> CSSNamespaceRule
and [<AllowNullLiteral>] CSSPageRule =
inherit CSSRule
abstract pseudoClass: string with get, set
abstract selector: string with get, set
abstract selectorText: string with get, set
abstract style: CSSStyleDeclaration with get, set
and [<AllowNullLiteral>] CSSPageRuleType =
abstract prototype: CSSPageRule with get, set
[<Emit("new $0($1...)")>] abstract Create: unit -> CSSPageRule
and [<AllowNullLiteral>] CSSRule =
abstract cssText: string with get, set
abstract parentRule: CSSRule with get, set
abstract parentStyleSheet: CSSStyleSheet with get, set
abstract ``type``: float with get, set
abstract CHARSET_RULE: float with get, set
abstract FONT_FACE_RULE: float with get, set
abstract IMPORT_RULE: float with get, set
abstract KEYFRAMES_RULE: float with get, set
abstract KEYFRAME_RULE: float with get, set
abstract MEDIA_RULE: float with get, set
abstract NAMESPACE_RULE: float with get, set
abstract PAGE_RULE: float with get, set
abstract STYLE_RULE: float with get, set
abstract SUPPORTS_RULE: float with get, set
abstract UNKNOWN_RULE: float with get, set
abstract VIEWPORT_RULE: float with get, set
and [<AllowNullLiteral>] CSSRuleType =
abstract prototype: CSSRule with get, set
abstract CHARSET_RULE: float with get, set
abstract FONT_FACE_RULE: float with get, set
abstract IMPORT_RULE: float with get, set
abstract KEYFRAMES_RULE: float with get, set
abstract KEYFRAME_RULE: float with get, set
abstract MEDIA_RULE: float with get, set
abstract NAMESPACE_RULE: float with get, set
abstract PAGE_RULE: float with get, set
abstract STYLE_RULE: float with get, set
abstract SUPPORTS_RULE: float with get, set
abstract UNKNOWN_RULE: float with get, set
abstract VIEWPORT_RULE: float with get, set
[<Emit("new $0($1...)")>] abstract Create: unit -> CSSRule
and [<AllowNullLiteral>] CSSRuleList =
abstract length: float with get, set
[<Emit("$0[$1]{{=$2}}")>] abstract Item: index: int -> CSSRule with get, set
abstract item: index: float -> CSSRule
and [<AllowNullLiteral>] CSSRuleListType =
abstract prototype: CSSRuleList with get, set
[<Emit("new $0($1...)")>] abstract Create: unit -> CSSRuleList
and [<AllowNullLiteral>] CSSStyleDeclaration =
abstract alignContent: string with get, set
abstract alignItems: string with get, set
abstract alignSelf: string with get, set
abstract alignmentBaseline: string with get, set
abstract animation: string with get, set
abstract animationDelay: string with get, set
abstract animationDirection: string with get, set
abstract animationDuration: string with get, set
abstract animationFillMode: string with get, set
abstract animationIterationCount: string with get, set
abstract animationName: string with get, set
abstract animationPlayState: string with get, set
abstract animationTimingFunction: string with get, set
abstract backfaceVisibility: string with get, set
abstract background: string with get, set
abstract backgroundAttachment: string with get, set
abstract backgroundClip: string with get, set
abstract backgroundColor: string with get, set
abstract backgroundImage: string with get, set
abstract backgroundOrigin: string with get, set
abstract backgroundPosition: string with get, set
abstract backgroundPositionX: string with get, set
abstract backgroundPositionY: string with get, set
abstract backgroundRepeat: string with get, set
abstract backgroundSize: string with get, set
abstract baselineShift: string with get, set
abstract border: string with get, set
abstract borderBottom: string with get, set
abstract borderBottomColor: string with get, set
abstract borderBottomLeftRadius: string with get, set
abstract borderBottomRightRadius: string with get, set
abstract borderBottomStyle: string with get, set
abstract borderBottomWidth: string with get, set
abstract borderCollapse: string with get, set
abstract borderColor: string with get, set
abstract borderImage: string with get, set
abstract borderImageOutset: string with get, set
abstract borderImageRepeat: string with get, set
abstract borderImageSlice: string with get, set
abstract borderImageSource: string with get, set
abstract borderImageWidth: string with get, set
abstract borderLeft: string with get, set
abstract borderLeftColor: string with get, set
abstract borderLeftStyle: string with get, set
abstract borderLeftWidth: string with get, set
abstract borderRadius: string with get, set
abstract borderRight: string with get, set
abstract borderRightColor: string with get, set
abstract borderRightStyle: string with get, set
abstract borderRightWidth: string with get, set
abstract borderSpacing: string with get, set
abstract borderStyle: string with get, set
abstract borderTop: string with get, set
abstract borderTopColor: string with get, set
abstract borderTopLeftRadius: string with get, set
abstract borderTopRightRadius: string with get, set
abstract borderTopStyle: string with get, set
abstract borderTopWidth: string with get, set
abstract borderWidth: string with get, set
abstract bottom: string with get, set
abstract boxShadow: string with get, set
abstract boxSizing: string with get, set
abstract breakAfter: string with get, set
abstract breakBefore: string with get, set
abstract breakInside: string with get, set
abstract captionSide: string with get, set
abstract clear: string with get, set
abstract clip: string with get, set
abstract clipPath: string with get, set
abstract clipRule: string with get, set
abstract color: string with get, set
abstract colorInterpolationFilters: string with get, set
abstract columnCount: obj with get, set
abstract columnFill: string with get, set
abstract columnGap: obj with get, set
abstract columnRule: string with get, set
abstract columnRuleColor: obj with get, set
abstract columnRuleStyle: string with get, set
abstract columnRuleWidth: obj with get, set
abstract columnSpan: string with get, set
abstract columnWidth: obj with get, set
abstract columns: string with get, set
abstract content: string with get, set
abstract counterIncrement: string with get, set
abstract counterReset: string with get, set
abstract cssFloat: string with get, set
abstract cssText: string with get, set
abstract cursor: string with get, set
abstract direction: string with get, set
abstract display: string with get, set
abstract dominantBaseline: string with get, set
abstract emptyCells: string with get, set
abstract enableBackground: string with get, set
abstract fill: string with get, set
abstract fillOpacity: string with get, set
abstract fillRule: string with get, set
abstract filter: string with get, set
abstract flex: string with get, set
abstract flexBasis: string with get, set
abstract flexDirection: string with get, set
abstract flexFlow: string with get, set
abstract flexGrow: string with get, set
abstract flexShrink: string with get, set
abstract flexWrap: string with get, set
abstract floodColor: string with get, set
abstract floodOpacity: string with get, set
abstract font: string with get, set
abstract fontFamily: string with get, set
abstract fontFeatureSettings: string with get, set
abstract fontSize: string with get, set
abstract fontSizeAdjust: string with get, set
abstract fontStretch: string with get, set
abstract fontStyle: string with get, set
abstract fontVariant: string with get, set
abstract fontWeight: string with get, set
abstract glyphOrientationHorizontal: string with get, set
abstract glyphOrientationVertical: string with get, set
abstract height: string with get, set
abstract imeMode: string with get, set
abstract justifyContent: string with get, set
abstract kerning: string with get, set
abstract left: string with get, set
abstract length: float with get, set
abstract letterSpacing: string with get, set
abstract lightingColor: string with get, set
abstract lineHeight: string with get, set
abstract listStyle: string with get, set
abstract listStyleImage: string with get, set
abstract listStylePosition: string with get, set
abstract listStyleType: string with get, set
abstract margin: string with get, set
abstract marginBottom: string with get, set
abstract marginLeft: string with get, set
abstract marginRight: string with get, set
abstract marginTop: string with get, set
abstract marker: string with get, set
abstract markerEnd: string with get, set
abstract markerMid: string with get, set
abstract markerStart: string with get, set
abstract mask: string with get, set
abstract maxHeight: string with get, set
abstract maxWidth: string with get, set
abstract minHeight: string with get, set
abstract minWidth: string with get, set
abstract msContentZoomChaining: string with get, set
abstract msContentZoomLimit: string with get, set
abstract msContentZoomLimitMax: obj with get, set
abstract msContentZoomLimitMin: obj with get, set
abstract msContentZoomSnap: string with get, set
abstract msContentZoomSnapPoints: string with get, set
abstract msContentZoomSnapType: string with get, set
abstract msContentZooming: string with get, set
abstract msFlowFrom: string with get, set
abstract msFlowInto: string with get, set
abstract msFontFeatureSettings: string with get, set
abstract msGridColumn: obj with get, set
abstract msGridColumnAlign: string with get, set
abstract msGridColumnSpan: obj with get, set
abstract msGridColumns: string with get, set
abstract msGridRow: obj with get, set
abstract msGridRowAlign: string with get, set
abstract msGridRowSpan: obj with get, set
abstract msGridRows: string with get, set
abstract msHighContrastAdjust: string with get, set
abstract msHyphenateLimitChars: string with get, set
abstract msHyphenateLimitLines: obj with get, set
abstract msHyphenateLimitZone: obj with get, set
abstract msHyphens: string with get, set
abstract msImeAlign: string with get, set
abstract msOverflowStyle: string with get, set
abstract msScrollChaining: string with get, set
abstract msScrollLimit: string with get, set
abstract msScrollLimitXMax: obj with get, set
abstract msScrollLimitXMin: obj with get, set
abstract msScrollLimitYMax: obj with get, set
abstract msScrollLimitYMin: obj with get, set
abstract msScrollRails: string with get, set
abstract msScrollSnapPointsX: string with get, set
abstract msScrollSnapPointsY: string with get, set
abstract msScrollSnapType: string with get, set
abstract msScrollSnapX: string with get, set
abstract msScrollSnapY: string with get, set
abstract msScrollTranslation: string with get, set
abstract msTextCombineHorizontal: string with get, set
abstract msTextSizeAdjust: obj with get, set
abstract msTouchAction: string with get, set
abstract msTouchSelect: string with get, set
abstract msUserSelect: string with get, set
abstract msWrapFlow: string with get, set
abstract msWrapMargin: obj with get, set
abstract msWrapThrough: string with get, set
abstract opacity: string with get, set
abstract order: string with get, set
abstract orphans: string with get, set
abstract outline: string with get, set
abstract outlineColor: string with get, set
abstract outlineStyle: string with get, set
abstract outlineWidth: string with get, set
abstract overflow: string with get, set
abstract overflowX: string with get, set
abstract overflowY: string with get, set
abstract padding: string with get, set
abstract paddingBottom: string with get, set
abstract paddingLeft: string with get, set
abstract paddingRight: string with get, set
abstract paddingTop: string with get, set
abstract pageBreakAfter: string with get, set
abstract pageBreakBefore: string with get, set
abstract pageBreakInside: string with get, set
abstract parentRule: CSSRule with get, set
abstract perspective: string with get, set
abstract perspectiveOrigin: string with get, set
abstract pointerEvents: string with get, set
abstract position: string with get, set
abstract quotes: string with get, set
abstract right: string with get, set
abstract rubyAlign: string with get, set
abstract rubyOverhang: string with get, set
abstract rubyPosition: string with get, set
abstract stopColor: string with get, set
abstract stopOpacity: string with get, set
abstract stroke: string with get, set
abstract strokeDasharray: string with get, set
abstract strokeDashoffset: string with get, set
abstract strokeLinecap: string with get, set
abstract strokeLinejoin: string with get, set
abstract strokeMiterlimit: string with get, set
abstract strokeOpacity: string with get, set
abstract strokeWidth: string with get, set
abstract tableLayout: string with get, set
abstract textAlign: string with get, set
abstract textAlignLast: string with get, set
abstract textAnchor: string with get, set
abstract textDecoration: string with get, set
abstract textFillColor: string with get, set
abstract textIndent: string with get, set
abstract textJustify: string with get, set
abstract textKashida: string with get, set
abstract textKashidaSpace: string with get, set
abstract textOverflow: string with get, set
abstract textShadow: string with get, set
abstract textTransform: string with get, set
abstract textUnderlinePosition: string with get, set
abstract top: string with get, set
abstract touchAction: string with get, set
abstract transform: string with get, set
abstract transformOrigin: string with get, set
abstract transformStyle: string with get, set
abstract transition: string with get, set
abstract transitionDelay: string with get, set
abstract transitionDuration: string with get, set
abstract transitionProperty: string with get, set