@rescript/webapi 0.1.0-experimental-a0d5168 → 0.1.0-experimental-47c6b2c

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/src/CSSFontLoadingAPI/FontFaceSet.res +3 -79
  4. package/src/CanvasAPI/OffscreenCanvas.res +3 -79
  5. package/src/ChannelMessagingAPI/MessagePort.res +3 -81
  6. package/src/ClipboardAPI/Clipboard.res +3 -80
  7. package/src/DOMAPI/Animation.res +3 -80
  8. package/src/DOMAPI/CharacterData.res +68 -231
  9. package/src/DOMAPI/Comment.res +4 -271
  10. package/src/DOMAPI/Document.res +4 -178
  11. package/src/DOMAPI/DocumentFragment.res +58 -220
  12. package/src/DOMAPI/Element.res +313 -477
  13. package/src/DOMAPI/HTMLAnchorElement.res +3 -691
  14. package/src/DOMAPI/HTMLAreaElement.res +3 -685
  15. package/src/DOMAPI/HTMLAudioElement.res +3 -748
  16. package/src/DOMAPI/HTMLBRElement.res +3 -684
  17. package/src/DOMAPI/HTMLBaseElement.res +3 -685
  18. package/src/DOMAPI/HTMLBodyElement.res +3 -685
  19. package/src/DOMAPI/HTMLButtonElement.res +3 -691
  20. package/src/DOMAPI/HTMLCanvasElement.res +3 -691
  21. package/src/DOMAPI/HTMLDListElement.res +3 -688
  22. package/src/DOMAPI/HTMLDataElement.res +3 -685
  23. package/src/DOMAPI/HTMLDataListElement.res +3 -695
  24. package/src/DOMAPI/HTMLDialogElement.res +3 -691
  25. package/src/DOMAPI/HTMLDivElement.res +3 -684
  26. package/src/DOMAPI/HTMLElement.res +40 -666
  27. package/src/DOMAPI/HTMLEmbedElement.res +3 -688
  28. package/src/DOMAPI/HTMLFieldSetElement.res +3 -695
  29. package/src/DOMAPI/HTMLFormElement.res +3 -685
  30. package/src/DOMAPI/HTMLFrameSetElement.res +3 -695
  31. package/src/DOMAPI/HTMLHRElement.res +3 -684
  32. package/src/DOMAPI/HTMLHeadElement.res +3 -685
  33. package/src/DOMAPI/HTMLHeadingElement.res +3 -691
  34. package/src/DOMAPI/HTMLHtmlElement.res +3 -685
  35. package/src/DOMAPI/HTMLIFrameElement.res +3 -691
  36. package/src/DOMAPI/HTMLImageElement.res +3 -688
  37. package/src/DOMAPI/HTMLInputElement.res +3 -688
  38. package/src/DOMAPI/HTMLLIElement.res +3 -684
  39. package/src/DOMAPI/HTMLLabelElement.res +3 -688
  40. package/src/DOMAPI/HTMLLegendElement.res +3 -691
  41. package/src/DOMAPI/HTMLLinkElement.res +3 -685
  42. package/src/DOMAPI/HTMLMapElement.res +3 -684
  43. package/src/DOMAPI/HTMLMediaElement.res +49 -722
  44. package/src/DOMAPI/HTMLMenuElement.res +3 -685
  45. package/src/DOMAPI/HTMLMetaElement.res +3 -685
  46. package/src/DOMAPI/HTMLMeterElement.res +3 -688
  47. package/src/DOMAPI/HTMLModElement.res +3 -684
  48. package/src/DOMAPI/HTMLOListElement.res +3 -688
  49. package/src/DOMAPI/HTMLObjectElement.res +3 -691
  50. package/src/DOMAPI/HTMLOptGroupElement.res +3 -695
  51. package/src/DOMAPI/HTMLOptionElement.res +3 -691
  52. package/src/DOMAPI/HTMLOutputElement.res +3 -691
  53. package/src/DOMAPI/HTMLParagraphElement.res +3 -699
  54. package/src/DOMAPI/HTMLPictureElement.res +3 -691
  55. package/src/DOMAPI/HTMLPreElement.res +3 -684
  56. package/src/DOMAPI/HTMLProgressElement.res +3 -695
  57. package/src/DOMAPI/HTMLQuoteElement.res +3 -688
  58. package/src/DOMAPI/HTMLScriptElement.res +3 -691
  59. package/src/DOMAPI/HTMLSelectElement.res +4 -692
  60. package/src/DOMAPI/HTMLSlotElement.res +3 -685
  61. package/src/DOMAPI/HTMLSourceElement.res +3 -691
  62. package/src/DOMAPI/HTMLSpanElement.res +3 -685
  63. package/src/DOMAPI/HTMLStyleElement.res +3 -688
  64. package/src/DOMAPI/HTMLTableCaptionElement.res +3 -712
  65. package/src/DOMAPI/HTMLTableCellElement.res +3 -699
  66. package/src/DOMAPI/HTMLTableElement.res +3 -688
  67. package/src/DOMAPI/HTMLTableRowElement.res +3 -695
  68. package/src/DOMAPI/HTMLTableSectionElement.res +3 -712
  69. package/src/DOMAPI/HTMLTemplateElement.res +3 -695
  70. package/src/DOMAPI/HTMLTextAreaElement.res +3 -695
  71. package/src/DOMAPI/HTMLTimeElement.res +3 -685
  72. package/src/DOMAPI/HTMLTitleElement.res +3 -688
  73. package/src/DOMAPI/HTMLTrackElement.res +3 -688
  74. package/src/DOMAPI/HTMLUListElement.res +3 -688
  75. package/src/DOMAPI/HTMLVideoElement.res +3 -748
  76. package/src/DOMAPI/MediaQueryList.res +3 -80
  77. package/src/DOMAPI/Node.res +59 -124
  78. package/src/DOMAPI/SVGGraphicsElement.res +4 -660
  79. package/src/DOMAPI/ScreenOrientation.res +3 -79
  80. package/src/DOMAPI/ShadowRoot.res +4 -255
  81. package/src/DOMAPI/Text.res +4 -271
  82. package/src/DOMAPI/TextTrackList.res +3 -79
  83. package/src/DOMAPI/Window.res +4 -80
  84. package/src/EncryptedMediaExtensionsAPI/MediaKeySession.res +3 -80
  85. package/src/EventAPI/AbortSignal.res +3 -80
  86. package/src/EventAPI/Event.res +28 -16
  87. package/src/EventAPI/EventTarget.res +51 -39
  88. package/src/FileAPI/Blob.res +26 -15
  89. package/src/FileAPI/File.res +4 -31
  90. package/src/IndexedDBAPI/IDBDatabase.res +3 -79
  91. package/src/IndexedDBAPI/IDBTransaction.res +3 -80
  92. package/src/MediaCaptureAndStreamsAPI/MediaDevices.res +3 -79
  93. package/src/MediaCaptureAndStreamsAPI/MediaStream.res +3 -80
  94. package/src/MediaCaptureAndStreamsAPI/MediaStreamTrack.res +3 -81
  95. package/src/NotificationAPI/Notification.res +3 -80
  96. package/src/PerformanceAPI/Performance.res +3 -79
  97. package/src/RemotePlaybackAPI/RemotePlayback.res +3 -80
  98. package/src/ScreenWakeLockAPI/WakeLockSentinel.res +3 -79
  99. package/src/ServiceWorkerAPI/ServiceWorker.res +3 -79
  100. package/src/ServiceWorkerAPI/ServiceWorkerContainer.res +3 -79
  101. package/src/ServiceWorkerAPI/ServiceWorkerRegistration.res +3 -79
  102. package/src/WebAudioAPI/AnalyserNode.res +4 -148
  103. package/src/WebAudioAPI/AudioBufferSourceNode.res +4 -162
  104. package/src/WebAudioAPI/AudioContext.res +4 -212
  105. package/src/WebAudioAPI/AudioNode.res +39 -113
  106. package/src/WebAudioAPI/AudioProcessingEvent.res +4 -30
  107. package/src/WebAudioAPI/AudioScheduledSourceNode.res +20 -162
  108. package/src/WebAudioAPI/AudioWorkletNode.res +4 -149
  109. package/src/WebAudioAPI/BaseAudioContext.res +85 -155
  110. package/src/WebAudioAPI/BiquadFilterNode.res +4 -149
  111. package/src/WebAudioAPI/ChannelMergerNode.res +4 -149
  112. package/src/WebAudioAPI/ChannelSplitterNode.res +4 -149
  113. package/src/WebAudioAPI/ConstantSourceNode.res +4 -162
  114. package/src/WebAudioAPI/ConvolverNode.res +4 -149
  115. package/src/WebAudioAPI/DelayNode.res +4 -143
  116. package/src/WebAudioAPI/DynamicsCompressorNode.res +4 -152
  117. package/src/WebAudioAPI/GainNode.res +4 -142
  118. package/src/WebAudioAPI/IIRFilterNode.res +4 -149
  119. package/src/WebAudioAPI/MediaElementAudioSourceNode.res +4 -158
  120. package/src/WebAudioAPI/MediaStreamAudioDestinationNode.res +4 -158
  121. package/src/WebAudioAPI/MediaStreamAudioSourceNode.res +4 -158
  122. package/src/WebAudioAPI/OfflineAudioCompletionEvent.res +4 -30
  123. package/src/WebAudioAPI/OfflineAudioContext.res +4 -214
  124. package/src/WebAudioAPI/OscillatorNode.res +4 -162
  125. package/src/WebAudioAPI/PannerNode.res +4 -143
  126. package/src/WebAudioAPI/StereoPannerNode.res +4 -149
  127. package/src/WebAudioAPI/WaveShaperNode.res +4 -149
  128. package/src/WebSocketsAPI/CloseEvent.res +4 -30
  129. package/src/WebSocketsAPI/WebSocket.res +3 -79
  130. package/src/WebSpeechAPI/SpeechSynthesis.res +3 -79
  131. package/src/WebSpeechAPI/SpeechSynthesisUtterance.res +4 -81
  132. package/src/WebStorageAPI/StorageEvent.res +4 -30
  133. package/src/WebVTTAPI/TextTrack.res +3 -79
@@ -1,6 +1,9 @@
1
- open EventAPI
2
1
  open WebAudioAPI
3
2
 
3
+ include AudioNode.Impl({
4
+ type t = iirFilterNode
5
+ })
6
+
4
7
  /**
5
8
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/IIRFilterNode)
6
9
  */
@@ -8,154 +11,6 @@ open WebAudioAPI
8
11
  external make: (~context: baseAudioContext, ~options: iirFilterOptions) => iirFilterNode =
9
12
  "IIRFilterNode"
10
13
 
11
- external asAudioNode: iirFilterNode => audioNode = "%identity"
12
- external asEventTarget: iirFilterNode => eventTarget = "%identity"
13
- /**
14
- Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
15
-
16
- The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
17
-
18
- When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
19
-
20
- When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.
21
-
22
- When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
23
-
24
- If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
25
-
26
- The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
27
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)
28
- */
29
- @send
30
- external addEventListener: (
31
- iirFilterNode,
32
- ~type_: eventType,
33
- ~callback: eventListener<'event>,
34
- ~options: addEventListenerOptions=?,
35
- ) => unit = "addEventListener"
36
-
37
- /**
38
- Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
39
-
40
- The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
41
-
42
- When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
43
-
44
- When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.
45
-
46
- When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
47
-
48
- If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
49
-
50
- The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
51
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)
52
- */
53
- @send
54
- external addEventListener2: (
55
- iirFilterNode,
56
- ~type_: eventType,
57
- ~callback: eventListener<'event>,
58
- ~options: bool=?,
59
- ) => unit = "addEventListener"
60
-
61
- /**
62
- Removes the event listener in target's event listener list with the same type, callback, and options.
63
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
64
- */
65
- @send
66
- external removeEventListener: (
67
- iirFilterNode,
68
- ~type_: eventType,
69
- ~callback: eventListener<'event>,
70
- ~options: eventListenerOptions=?,
71
- ) => unit = "removeEventListener"
72
-
73
- /**
74
- Removes the event listener in target's event listener list with the same type, callback, and options.
75
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
76
- */
77
- @send
78
- external removeEventListener2: (
79
- iirFilterNode,
80
- ~type_: eventType,
81
- ~callback: eventListener<'event>,
82
- ~options: bool=?,
83
- ) => unit = "removeEventListener"
84
-
85
- /**
86
- Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
87
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
88
- */
89
- @send
90
- external dispatchEvent: (iirFilterNode, event) => bool = "dispatchEvent"
91
-
92
- /**
93
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/connect)
94
- */
95
- @send
96
- external connect: (
97
- iirFilterNode,
98
- ~destinationNode: audioNode,
99
- ~output: int=?,
100
- ~input: int=?,
101
- ) => audioNode = "connect"
102
-
103
- /**
104
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/connect)
105
- */
106
- @send
107
- external connect2: (iirFilterNode, ~destinationParam: audioParam, ~output: int=?) => unit =
108
- "connect"
109
-
110
- /**
111
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect)
112
- */
113
- @send
114
- external disconnect: iirFilterNode => unit = "disconnect"
115
-
116
- /**
117
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect)
118
- */
119
- @send
120
- external disconnect2: (iirFilterNode, int) => unit = "disconnect"
121
-
122
- /**
123
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect)
124
- */
125
- @send
126
- external disconnect3: (iirFilterNode, audioNode) => unit = "disconnect"
127
-
128
- /**
129
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect)
130
- */
131
- @send
132
- external disconnect4: (iirFilterNode, ~destinationNode: audioNode, ~output: int) => unit =
133
- "disconnect"
134
-
135
- /**
136
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect)
137
- */
138
- @send
139
- external disconnect5: (
140
- iirFilterNode,
141
- ~destinationNode: audioNode,
142
- ~output: int,
143
- ~input: int,
144
- ) => unit = "disconnect"
145
-
146
- /**
147
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect)
148
- */
149
- @send
150
- external disconnect6: (iirFilterNode, audioParam) => unit = "disconnect"
151
-
152
- /**
153
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect)
154
- */
155
- @send
156
- external disconnect7: (iirFilterNode, ~destinationParam: audioParam, ~output: int) => unit =
157
- "disconnect"
158
-
159
14
  /**
160
15
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/IIRFilterNode/getFrequencyResponse)
161
16
  */
@@ -1,6 +1,9 @@
1
- open EventAPI
2
1
  open WebAudioAPI
3
2
 
3
+ include AudioNode.Impl({
4
+ type t = mediaElementAudioSourceNode
5
+ })
6
+
4
7
  /**
5
8
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MediaElementAudioSourceNode)
6
9
  */
@@ -9,160 +12,3 @@ external make: (
9
12
  ~context: audioContext,
10
13
  ~options: mediaElementAudioSourceOptions,
11
14
  ) => mediaElementAudioSourceNode = "MediaElementAudioSourceNode"
12
-
13
- external asAudioNode: mediaElementAudioSourceNode => audioNode = "%identity"
14
- external asEventTarget: mediaElementAudioSourceNode => eventTarget = "%identity"
15
- /**
16
- Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
17
-
18
- The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
19
-
20
- When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
21
-
22
- When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.
23
-
24
- When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
25
-
26
- If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
27
-
28
- The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
29
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)
30
- */
31
- @send
32
- external addEventListener: (
33
- mediaElementAudioSourceNode,
34
- ~type_: eventType,
35
- ~callback: eventListener<'event>,
36
- ~options: addEventListenerOptions=?,
37
- ) => unit = "addEventListener"
38
-
39
- /**
40
- Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
41
-
42
- The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
43
-
44
- When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
45
-
46
- When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.
47
-
48
- When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
49
-
50
- If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
51
-
52
- The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
53
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)
54
- */
55
- @send
56
- external addEventListener2: (
57
- mediaElementAudioSourceNode,
58
- ~type_: eventType,
59
- ~callback: eventListener<'event>,
60
- ~options: bool=?,
61
- ) => unit = "addEventListener"
62
-
63
- /**
64
- Removes the event listener in target's event listener list with the same type, callback, and options.
65
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
66
- */
67
- @send
68
- external removeEventListener: (
69
- mediaElementAudioSourceNode,
70
- ~type_: eventType,
71
- ~callback: eventListener<'event>,
72
- ~options: eventListenerOptions=?,
73
- ) => unit = "removeEventListener"
74
-
75
- /**
76
- Removes the event listener in target's event listener list with the same type, callback, and options.
77
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
78
- */
79
- @send
80
- external removeEventListener2: (
81
- mediaElementAudioSourceNode,
82
- ~type_: eventType,
83
- ~callback: eventListener<'event>,
84
- ~options: bool=?,
85
- ) => unit = "removeEventListener"
86
-
87
- /**
88
- Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
89
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
90
- */
91
- @send
92
- external dispatchEvent: (mediaElementAudioSourceNode, event) => bool = "dispatchEvent"
93
-
94
- /**
95
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/connect)
96
- */
97
- @send
98
- external connect: (
99
- mediaElementAudioSourceNode,
100
- ~destinationNode: audioNode,
101
- ~output: int=?,
102
- ~input: int=?,
103
- ) => audioNode = "connect"
104
-
105
- /**
106
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/connect)
107
- */
108
- @send
109
- external connect2: (
110
- mediaElementAudioSourceNode,
111
- ~destinationParam: audioParam,
112
- ~output: int=?,
113
- ) => unit = "connect"
114
-
115
- /**
116
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect)
117
- */
118
- @send
119
- external disconnect: mediaElementAudioSourceNode => unit = "disconnect"
120
-
121
- /**
122
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect)
123
- */
124
- @send
125
- external disconnect2: (mediaElementAudioSourceNode, int) => unit = "disconnect"
126
-
127
- /**
128
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect)
129
- */
130
- @send
131
- external disconnect3: (mediaElementAudioSourceNode, audioNode) => unit = "disconnect"
132
-
133
- /**
134
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect)
135
- */
136
- @send
137
- external disconnect4: (
138
- mediaElementAudioSourceNode,
139
- ~destinationNode: audioNode,
140
- ~output: int,
141
- ) => unit = "disconnect"
142
-
143
- /**
144
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect)
145
- */
146
- @send
147
- external disconnect5: (
148
- mediaElementAudioSourceNode,
149
- ~destinationNode: audioNode,
150
- ~output: int,
151
- ~input: int,
152
- ) => unit = "disconnect"
153
-
154
- /**
155
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect)
156
- */
157
- @send
158
- external disconnect6: (mediaElementAudioSourceNode, audioParam) => unit = "disconnect"
159
-
160
- /**
161
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect)
162
- */
163
- @send
164
- external disconnect7: (
165
- mediaElementAudioSourceNode,
166
- ~destinationParam: audioParam,
167
- ~output: int,
168
- ) => unit = "disconnect"
@@ -1,6 +1,9 @@
1
- open EventAPI
2
1
  open WebAudioAPI
3
2
 
3
+ include AudioNode.Impl({
4
+ type t = mediaStreamAudioDestinationNode
5
+ })
6
+
4
7
  /**
5
8
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MediaStreamAudioDestinationNode)
6
9
  */
@@ -9,160 +12,3 @@ external make: (
9
12
  ~context: audioContext,
10
13
  ~options: audioNodeOptions=?,
11
14
  ) => mediaStreamAudioDestinationNode = "MediaStreamAudioDestinationNode"
12
-
13
- external asAudioNode: mediaStreamAudioDestinationNode => audioNode = "%identity"
14
- external asEventTarget: mediaStreamAudioDestinationNode => eventTarget = "%identity"
15
- /**
16
- Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
17
-
18
- The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
19
-
20
- When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
21
-
22
- When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.
23
-
24
- When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
25
-
26
- If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
27
-
28
- The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
29
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)
30
- */
31
- @send
32
- external addEventListener: (
33
- mediaStreamAudioDestinationNode,
34
- ~type_: eventType,
35
- ~callback: eventListener<'event>,
36
- ~options: addEventListenerOptions=?,
37
- ) => unit = "addEventListener"
38
-
39
- /**
40
- Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
41
-
42
- The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
43
-
44
- When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
45
-
46
- When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.
47
-
48
- When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
49
-
50
- If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
51
-
52
- The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
53
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)
54
- */
55
- @send
56
- external addEventListener2: (
57
- mediaStreamAudioDestinationNode,
58
- ~type_: eventType,
59
- ~callback: eventListener<'event>,
60
- ~options: bool=?,
61
- ) => unit = "addEventListener"
62
-
63
- /**
64
- Removes the event listener in target's event listener list with the same type, callback, and options.
65
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
66
- */
67
- @send
68
- external removeEventListener: (
69
- mediaStreamAudioDestinationNode,
70
- ~type_: eventType,
71
- ~callback: eventListener<'event>,
72
- ~options: eventListenerOptions=?,
73
- ) => unit = "removeEventListener"
74
-
75
- /**
76
- Removes the event listener in target's event listener list with the same type, callback, and options.
77
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
78
- */
79
- @send
80
- external removeEventListener2: (
81
- mediaStreamAudioDestinationNode,
82
- ~type_: eventType,
83
- ~callback: eventListener<'event>,
84
- ~options: bool=?,
85
- ) => unit = "removeEventListener"
86
-
87
- /**
88
- Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
89
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
90
- */
91
- @send
92
- external dispatchEvent: (mediaStreamAudioDestinationNode, event) => bool = "dispatchEvent"
93
-
94
- /**
95
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/connect)
96
- */
97
- @send
98
- external connect: (
99
- mediaStreamAudioDestinationNode,
100
- ~destinationNode: audioNode,
101
- ~output: int=?,
102
- ~input: int=?,
103
- ) => audioNode = "connect"
104
-
105
- /**
106
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/connect)
107
- */
108
- @send
109
- external connect2: (
110
- mediaStreamAudioDestinationNode,
111
- ~destinationParam: audioParam,
112
- ~output: int=?,
113
- ) => unit = "connect"
114
-
115
- /**
116
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect)
117
- */
118
- @send
119
- external disconnect: mediaStreamAudioDestinationNode => unit = "disconnect"
120
-
121
- /**
122
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect)
123
- */
124
- @send
125
- external disconnect2: (mediaStreamAudioDestinationNode, int) => unit = "disconnect"
126
-
127
- /**
128
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect)
129
- */
130
- @send
131
- external disconnect3: (mediaStreamAudioDestinationNode, audioNode) => unit = "disconnect"
132
-
133
- /**
134
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect)
135
- */
136
- @send
137
- external disconnect4: (
138
- mediaStreamAudioDestinationNode,
139
- ~destinationNode: audioNode,
140
- ~output: int,
141
- ) => unit = "disconnect"
142
-
143
- /**
144
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect)
145
- */
146
- @send
147
- external disconnect5: (
148
- mediaStreamAudioDestinationNode,
149
- ~destinationNode: audioNode,
150
- ~output: int,
151
- ~input: int,
152
- ) => unit = "disconnect"
153
-
154
- /**
155
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect)
156
- */
157
- @send
158
- external disconnect6: (mediaStreamAudioDestinationNode, audioParam) => unit = "disconnect"
159
-
160
- /**
161
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect)
162
- */
163
- @send
164
- external disconnect7: (
165
- mediaStreamAudioDestinationNode,
166
- ~destinationParam: audioParam,
167
- ~output: int,
168
- ) => unit = "disconnect"
@@ -1,6 +1,9 @@
1
- open EventAPI
2
1
  open WebAudioAPI
3
2
 
3
+ include AudioNode.Impl({
4
+ type t = mediaStreamAudioSourceNode
5
+ })
6
+
4
7
  /**
5
8
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MediaStreamAudioSourceNode)
6
9
  */
@@ -9,160 +12,3 @@ external make: (
9
12
  ~context: audioContext,
10
13
  ~options: mediaStreamAudioSourceOptions,
11
14
  ) => mediaStreamAudioSourceNode = "MediaStreamAudioSourceNode"
12
-
13
- external asAudioNode: mediaStreamAudioSourceNode => audioNode = "%identity"
14
- external asEventTarget: mediaStreamAudioSourceNode => eventTarget = "%identity"
15
- /**
16
- Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
17
-
18
- The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
19
-
20
- When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
21
-
22
- When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.
23
-
24
- When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
25
-
26
- If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
27
-
28
- The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
29
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)
30
- */
31
- @send
32
- external addEventListener: (
33
- mediaStreamAudioSourceNode,
34
- ~type_: eventType,
35
- ~callback: eventListener<'event>,
36
- ~options: addEventListenerOptions=?,
37
- ) => unit = "addEventListener"
38
-
39
- /**
40
- Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
41
-
42
- The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
43
-
44
- When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
45
-
46
- When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.
47
-
48
- When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
49
-
50
- If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
51
-
52
- The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
53
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)
54
- */
55
- @send
56
- external addEventListener2: (
57
- mediaStreamAudioSourceNode,
58
- ~type_: eventType,
59
- ~callback: eventListener<'event>,
60
- ~options: bool=?,
61
- ) => unit = "addEventListener"
62
-
63
- /**
64
- Removes the event listener in target's event listener list with the same type, callback, and options.
65
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
66
- */
67
- @send
68
- external removeEventListener: (
69
- mediaStreamAudioSourceNode,
70
- ~type_: eventType,
71
- ~callback: eventListener<'event>,
72
- ~options: eventListenerOptions=?,
73
- ) => unit = "removeEventListener"
74
-
75
- /**
76
- Removes the event listener in target's event listener list with the same type, callback, and options.
77
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
78
- */
79
- @send
80
- external removeEventListener2: (
81
- mediaStreamAudioSourceNode,
82
- ~type_: eventType,
83
- ~callback: eventListener<'event>,
84
- ~options: bool=?,
85
- ) => unit = "removeEventListener"
86
-
87
- /**
88
- Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
89
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
90
- */
91
- @send
92
- external dispatchEvent: (mediaStreamAudioSourceNode, event) => bool = "dispatchEvent"
93
-
94
- /**
95
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/connect)
96
- */
97
- @send
98
- external connect: (
99
- mediaStreamAudioSourceNode,
100
- ~destinationNode: audioNode,
101
- ~output: int=?,
102
- ~input: int=?,
103
- ) => audioNode = "connect"
104
-
105
- /**
106
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/connect)
107
- */
108
- @send
109
- external connect2: (
110
- mediaStreamAudioSourceNode,
111
- ~destinationParam: audioParam,
112
- ~output: int=?,
113
- ) => unit = "connect"
114
-
115
- /**
116
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect)
117
- */
118
- @send
119
- external disconnect: mediaStreamAudioSourceNode => unit = "disconnect"
120
-
121
- /**
122
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect)
123
- */
124
- @send
125
- external disconnect2: (mediaStreamAudioSourceNode, int) => unit = "disconnect"
126
-
127
- /**
128
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect)
129
- */
130
- @send
131
- external disconnect3: (mediaStreamAudioSourceNode, audioNode) => unit = "disconnect"
132
-
133
- /**
134
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect)
135
- */
136
- @send
137
- external disconnect4: (
138
- mediaStreamAudioSourceNode,
139
- ~destinationNode: audioNode,
140
- ~output: int,
141
- ) => unit = "disconnect"
142
-
143
- /**
144
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect)
145
- */
146
- @send
147
- external disconnect5: (
148
- mediaStreamAudioSourceNode,
149
- ~destinationNode: audioNode,
150
- ~output: int,
151
- ~input: int,
152
- ) => unit = "disconnect"
153
-
154
- /**
155
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect)
156
- */
157
- @send
158
- external disconnect6: (mediaStreamAudioSourceNode, audioParam) => unit = "disconnect"
159
-
160
- /**
161
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect)
162
- */
163
- @send
164
- external disconnect7: (
165
- mediaStreamAudioSourceNode,
166
- ~destinationParam: audioParam,
167
- ~output: int,
168
- ) => unit = "disconnect"