@rescript/webapi 0.1.0-experimental-6c5decb → 0.1.0-experimental-5cf77f4

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 (159) hide show
  1. package/package.json +1 -1
  2. package/src/CSSFontLoadingAPI/FontFaceSet.res +1 -3
  3. package/src/CSSFontLoadingAPI.res +0 -1
  4. package/src/CanvasAPI/OffscreenCanvas.res +1 -3
  5. package/src/ChannelMessagingAPI/MessagePort.res +1 -3
  6. package/src/ClipboardAPI/Clipboard.res +1 -3
  7. package/src/DOMAPI/Animation.res +1 -3
  8. package/src/DOMAPI/CharacterData.res +2 -6
  9. package/src/DOMAPI/Comment.res +1 -3
  10. package/src/DOMAPI/Document.res +1 -3
  11. package/src/DOMAPI/DocumentFragment.res +2 -6
  12. package/src/DOMAPI/Element.res +2 -6
  13. package/src/DOMAPI/HTMLAnchorElement.res +1 -3
  14. package/src/DOMAPI/HTMLAreaElement.res +1 -3
  15. package/src/DOMAPI/HTMLAudioElement.res +1 -3
  16. package/src/DOMAPI/HTMLBRElement.res +1 -3
  17. package/src/DOMAPI/HTMLBaseElement.res +1 -3
  18. package/src/DOMAPI/HTMLBodyElement.res +1 -3
  19. package/src/DOMAPI/HTMLButtonElement.res +1 -3
  20. package/src/DOMAPI/HTMLCanvasElement.res +1 -3
  21. package/src/DOMAPI/HTMLDListElement.res +1 -3
  22. package/src/DOMAPI/HTMLDataElement.res +1 -3
  23. package/src/DOMAPI/HTMLDataListElement.res +1 -3
  24. package/src/DOMAPI/HTMLDialogElement.res +1 -3
  25. package/src/DOMAPI/HTMLDivElement.res +1 -3
  26. package/src/DOMAPI/HTMLElement.res +2 -6
  27. package/src/DOMAPI/HTMLEmbedElement.res +1 -3
  28. package/src/DOMAPI/HTMLFieldSetElement.res +1 -3
  29. package/src/DOMAPI/HTMLFormElement.res +1 -3
  30. package/src/DOMAPI/HTMLFrameSetElement.res +1 -3
  31. package/src/DOMAPI/HTMLHRElement.res +1 -3
  32. package/src/DOMAPI/HTMLHeadElement.res +1 -3
  33. package/src/DOMAPI/HTMLHeadingElement.res +1 -3
  34. package/src/DOMAPI/HTMLHtmlElement.res +1 -3
  35. package/src/DOMAPI/HTMLIFrameElement.res +1 -3
  36. package/src/DOMAPI/HTMLImageElement.res +1 -3
  37. package/src/DOMAPI/HTMLInputElement.res +1 -3
  38. package/src/DOMAPI/HTMLLIElement.res +1 -3
  39. package/src/DOMAPI/HTMLLabelElement.res +1 -3
  40. package/src/DOMAPI/HTMLLegendElement.res +1 -3
  41. package/src/DOMAPI/HTMLLinkElement.res +1 -3
  42. package/src/DOMAPI/HTMLMapElement.res +1 -3
  43. package/src/DOMAPI/HTMLMediaElement.res +2 -6
  44. package/src/DOMAPI/HTMLMenuElement.res +1 -3
  45. package/src/DOMAPI/HTMLMetaElement.res +1 -3
  46. package/src/DOMAPI/HTMLMeterElement.res +1 -3
  47. package/src/DOMAPI/HTMLModElement.res +1 -3
  48. package/src/DOMAPI/HTMLOListElement.res +1 -3
  49. package/src/DOMAPI/HTMLObjectElement.res +1 -3
  50. package/src/DOMAPI/HTMLOptGroupElement.res +1 -3
  51. package/src/DOMAPI/HTMLOptionElement.res +1 -3
  52. package/src/DOMAPI/HTMLOutputElement.res +1 -3
  53. package/src/DOMAPI/HTMLParagraphElement.res +1 -3
  54. package/src/DOMAPI/HTMLPictureElement.res +1 -3
  55. package/src/DOMAPI/HTMLPreElement.res +1 -3
  56. package/src/DOMAPI/HTMLProgressElement.res +1 -3
  57. package/src/DOMAPI/HTMLQuoteElement.res +1 -3
  58. package/src/DOMAPI/HTMLScriptElement.res +1 -3
  59. package/src/DOMAPI/HTMLSelectElement.res +1 -3
  60. package/src/DOMAPI/HTMLSlotElement.res +1 -3
  61. package/src/DOMAPI/HTMLSourceElement.res +1 -3
  62. package/src/DOMAPI/HTMLSpanElement.res +1 -3
  63. package/src/DOMAPI/HTMLStyleElement.res +1 -3
  64. package/src/DOMAPI/HTMLTableCaptionElement.res +1 -3
  65. package/src/DOMAPI/HTMLTableCellElement.res +1 -3
  66. package/src/DOMAPI/HTMLTableElement.res +1 -3
  67. package/src/DOMAPI/HTMLTableRowElement.res +1 -3
  68. package/src/DOMAPI/HTMLTableSectionElement.res +1 -3
  69. package/src/DOMAPI/HTMLTemplateElement.res +1 -3
  70. package/src/DOMAPI/HTMLTextAreaElement.res +1 -3
  71. package/src/DOMAPI/HTMLTimeElement.res +1 -3
  72. package/src/DOMAPI/HTMLTitleElement.res +1 -3
  73. package/src/DOMAPI/HTMLTrackElement.res +1 -3
  74. package/src/DOMAPI/HTMLUListElement.res +1 -3
  75. package/src/DOMAPI/HTMLVideoElement.res +1 -3
  76. package/src/DOMAPI/MediaQueryList.res +1 -3
  77. package/src/DOMAPI/Navigator.res +1 -0
  78. package/src/DOMAPI/Node.res +2 -6
  79. package/src/DOMAPI/SVGGraphicsElement.res +1 -3
  80. package/src/DOMAPI/ScreenOrientation.res +1 -3
  81. package/src/DOMAPI/ShadowRoot.res +1 -3
  82. package/src/DOMAPI/Text.res +1 -3
  83. package/src/DOMAPI/TextTrackList.res +1 -3
  84. package/src/DOMAPI/Window.res +1 -3
  85. package/src/DOMAPI.res +35 -70
  86. package/src/EncryptedMediaExtensionsAPI/MediaKeySession.res +1 -3
  87. package/src/EventAPI/AbortSignal.res +1 -3
  88. package/src/EventAPI/Event.res +1 -3
  89. package/src/EventAPI/EventTarget.res +1 -3
  90. package/src/EventAPI/ExtendableEvent.res +2 -6
  91. package/src/EventAPI.res +1 -2
  92. package/src/FetchAPI/BodyInit.res +1 -0
  93. package/src/FetchAPI/Response.res +1 -0
  94. package/src/FetchAPI.res +0 -11
  95. package/src/FileAPI/Blob.res +1 -3
  96. package/src/FileAPI/File.res +1 -3
  97. package/src/FileAndDirectoryEntriesAPI.res +1 -2
  98. package/src/IndexedDBAPI/IDBDatabase.res +1 -3
  99. package/src/IndexedDBAPI/IDBTransaction.res +1 -3
  100. package/src/MediaCaptureAndStreamsAPI/MediaDevices.res +1 -3
  101. package/src/MediaCaptureAndStreamsAPI/MediaStream.res +1 -3
  102. package/src/MediaCaptureAndStreamsAPI/MediaStreamTrack.res +1 -3
  103. package/src/NotificationAPI/Notification.res +2 -5
  104. package/src/PerformanceAPI/Performance.res +1 -3
  105. package/src/PushAPI/PushEvent.res +1 -3
  106. package/src/RemotePlaybackAPI/RemotePlayback.res +1 -3
  107. package/src/ScreenWakeLockAPI/WakeLockSentinel.res +1 -3
  108. package/src/ServiceWorkerAPI/ServiceWorker.res +1 -3
  109. package/src/ServiceWorkerAPI/ServiceWorkerContainer.res +1 -3
  110. package/src/ServiceWorkerAPI/ServiceWorkerGlobalScope.res +1 -3
  111. package/src/ServiceWorkerAPI/ServiceWorkerRegistration.res +1 -3
  112. package/src/UIEventsAPI/CompositionEvent.res +1 -3
  113. package/src/UIEventsAPI/FocusEvent.res +1 -3
  114. package/src/UIEventsAPI/InputEvent.res +1 -3
  115. package/src/UIEventsAPI/KeyboardEvent.res +1 -3
  116. package/src/UIEventsAPI/MouseEvent.res +2 -6
  117. package/src/UIEventsAPI/PointerEvent.res +1 -3
  118. package/src/UIEventsAPI/TouchEvent.res +1 -3
  119. package/src/UIEventsAPI/UIEvent.res +2 -6
  120. package/src/UIEventsAPI/WheelEvent.res +1 -3
  121. package/src/URLAPI/URL.res +37 -0
  122. package/src/{FetchAPI → URLAPI}/URLSearchParams.res +1 -1
  123. package/src/URLAPI.res +68 -0
  124. package/src/WebAudioAPI/AnalyserNode.res +1 -3
  125. package/src/WebAudioAPI/AudioBufferSourceNode.res +1 -3
  126. package/src/WebAudioAPI/AudioContext.res +1 -3
  127. package/src/WebAudioAPI/AudioDestinationNode.res +1 -3
  128. package/src/WebAudioAPI/AudioNode.res +1 -3
  129. package/src/WebAudioAPI/AudioProcessingEvent.res +1 -3
  130. package/src/WebAudioAPI/AudioScheduledSourceNode.res +2 -6
  131. package/src/WebAudioAPI/AudioWorkletNode.res +1 -3
  132. package/src/WebAudioAPI/BaseAudioContext.res +1 -3
  133. package/src/WebAudioAPI/BiquadFilterNode.res +1 -3
  134. package/src/WebAudioAPI/ChannelMergerNode.res +1 -3
  135. package/src/WebAudioAPI/ChannelSplitterNode.res +1 -3
  136. package/src/WebAudioAPI/ConstantSourceNode.res +1 -3
  137. package/src/WebAudioAPI/ConvolverNode.res +1 -3
  138. package/src/WebAudioAPI/DelayNode.res +1 -3
  139. package/src/WebAudioAPI/DynamicsCompressorNode.res +1 -3
  140. package/src/WebAudioAPI/GainNode.res +1 -3
  141. package/src/WebAudioAPI/IIRFilterNode.res +1 -3
  142. package/src/WebAudioAPI/MediaElementAudioSourceNode.res +1 -3
  143. package/src/WebAudioAPI/MediaStreamAudioDestinationNode.res +1 -3
  144. package/src/WebAudioAPI/MediaStreamAudioSourceNode.res +1 -3
  145. package/src/WebAudioAPI/OfflineAudioCompletionEvent.res +1 -3
  146. package/src/WebAudioAPI/OfflineAudioContext.res +1 -3
  147. package/src/WebAudioAPI/OscillatorNode.res +1 -3
  148. package/src/WebAudioAPI/PannerNode.res +1 -3
  149. package/src/WebAudioAPI/StereoPannerNode.res +1 -3
  150. package/src/WebAudioAPI/WaveShaperNode.res +1 -3
  151. package/src/WebAudioAPI.res +15 -30
  152. package/src/WebSocketsAPI/CloseEvent.res +1 -3
  153. package/src/WebSocketsAPI/WebSocket.res +1 -3
  154. package/src/WebSpeechAPI/SpeechSynthesis.res +1 -3
  155. package/src/WebSpeechAPI/SpeechSynthesisUtterance.res +1 -3
  156. package/src/WebStorageAPI/StorageEvent.res +1 -3
  157. package/src/WebVTTAPI/TextTrack.res +1 -3
  158. package/src/WebVTTAPI.res +1 -2
  159. package/src/WebWorkersAPI/WorkerGlobalScope.res +2 -6
@@ -43,6 +43,4 @@ module Impl = (
43
43
  external bytes: T.t => promise<array<int>> = "bytes"
44
44
  }
45
45
 
46
- include Impl({
47
- type t = blob
48
- })
46
+ include Impl({type t = blob})
@@ -1,8 +1,6 @@
1
1
  open FileAPI
2
2
 
3
- include Blob.Impl({
4
- type t = file
5
- })
3
+ include Blob.Impl({type t = file})
6
4
 
7
5
  /**
8
6
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/File)
@@ -32,8 +32,7 @@ type rec fileSystemEntry = {
32
32
  /**
33
33
  [See FileSystemDirectoryEntry on MDN](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry)
34
34
  */
35
- @editor.completeFrom(FileSystemDirectoryEntry)
36
- and fileSystemDirectoryEntry = {
35
+ @editor.completeFrom(FileSystemDirectoryEntry) and fileSystemDirectoryEntry = {
37
36
  // Base properties from FileSystemEntry
38
37
  /**
39
38
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/isFile)
@@ -1,8 +1,6 @@
1
1
  open IndexedDBAPI
2
2
 
3
- include EventTarget.Impl({
4
- type t = idbDatabase
5
- })
3
+ include EventTarget.Impl({type t = idbDatabase})
6
4
 
7
5
  /**
8
6
  Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names.
@@ -1,8 +1,6 @@
1
1
  open IndexedDBAPI
2
2
 
3
- include EventTarget.Impl({
4
- type t = idbTransaction
5
- })
3
+ include EventTarget.Impl({type t = idbTransaction})
6
4
 
7
5
  /**
8
6
  Returns an IDBObjectStore in the transaction's scope.
@@ -1,8 +1,6 @@
1
1
  open MediaCaptureAndStreamsAPI
2
2
 
3
- include EventTarget.Impl({
4
- type t = mediaDevices
5
- })
3
+ include EventTarget.Impl({type t = mediaDevices})
6
4
 
7
5
  /**
8
6
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MediaDevices/enumerateDevices)
@@ -18,9 +18,7 @@ external make2: mediaStream => mediaStream = "MediaStream"
18
18
  @new
19
19
  external make3: array<mediaStreamTrack> => mediaStream = "MediaStream"
20
20
 
21
- include EventTarget.Impl({
22
- type t = mediaStream
23
- })
21
+ include EventTarget.Impl({type t = mediaStream})
24
22
 
25
23
  /**
26
24
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MediaStream/getAudioTracks)
@@ -1,8 +1,6 @@
1
1
  open MediaCaptureAndStreamsAPI
2
2
 
3
- include EventTarget.Impl({
4
- type t = mediaStreamTrack
5
- })
3
+ include EventTarget.Impl({type t = mediaStreamTrack})
6
4
 
7
5
  /**
8
6
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/clone)
@@ -6,9 +6,7 @@ open NotificationAPI
6
6
  @new
7
7
  external make: (~title: string, ~options: notificationOptions=?) => notification = "Notification"
8
8
 
9
- include EventTarget.Impl({
10
- type t = notification
11
- })
9
+ include EventTarget.Impl({type t = notification})
12
10
 
13
11
  /**
14
12
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Notification/requestPermission_static)
@@ -27,6 +25,5 @@ external close: notification => unit = "close"
27
25
  /**
28
26
  [Read more on MDN](https://developer.mozilla.org/en-US/docs/Web/API/Notification/permission_static)
29
27
  */
30
- @scope("Notification")
31
- @val
28
+ @scope("Notification") @val
32
29
  external permission: notificationPermission = "permission"
@@ -1,8 +1,6 @@
1
1
  open PerformanceAPI
2
2
 
3
- include EventTarget.Impl({
4
- type t = performance
5
- })
3
+ include EventTarget.Impl({type t = performance})
6
4
 
7
5
  /**
8
6
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Performance/now)
@@ -1,5 +1,3 @@
1
1
  open PushAPI
2
2
 
3
- include ExtendableEvent.Impl({
4
- type t = pushEvent
5
- })
3
+ include ExtendableEvent.Impl({type t = pushEvent})
@@ -1,8 +1,6 @@
1
1
  open RemotePlaybackAPI
2
2
 
3
- include EventTarget.Impl({
4
- type t = remotePlayback
5
- })
3
+ include EventTarget.Impl({type t = remotePlayback})
6
4
 
7
5
  /**
8
6
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/RemotePlayback/watchAvailability)
@@ -1,8 +1,6 @@
1
1
  open ScreenWakeLockAPI
2
2
 
3
- include EventTarget.Impl({
4
- type t = wakeLockSentinel
5
- })
3
+ include EventTarget.Impl({type t = wakeLockSentinel})
6
4
 
7
5
  /**
8
6
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/release)
@@ -1,9 +1,7 @@
1
1
  open ServiceWorkerAPI
2
2
  open ChannelMessagingAPI
3
3
 
4
- include EventTarget.Impl({
5
- type t = serviceWorker
6
- })
4
+ include EventTarget.Impl({type t = serviceWorker})
7
5
 
8
6
  /**
9
7
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ServiceWorker/postMessage)
@@ -1,8 +1,6 @@
1
1
  open ServiceWorkerAPI
2
2
 
3
- include EventTarget.Impl({
4
- type t = serviceWorkerContainer
5
- })
3
+ include EventTarget.Impl({type t = serviceWorkerContainer})
6
4
 
7
5
  /**
8
6
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/register)
@@ -1,5 +1,3 @@
1
1
  open ServiceWorkerAPI
2
2
 
3
- include WorkerGlobalScope.Impl({
4
- type t = serviceWorkerGlobalScope
5
- })
3
+ include WorkerGlobalScope.Impl({type t = serviceWorkerGlobalScope})
@@ -1,9 +1,7 @@
1
1
  open ServiceWorkerAPI
2
2
  open NotificationAPI
3
3
 
4
- include EventTarget.Impl({
5
- type t = serviceWorkerRegistration
6
- })
4
+ include EventTarget.Impl({type t = serviceWorkerRegistration})
7
5
 
8
6
  /**
9
7
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/update)
@@ -7,6 +7,4 @@ open UIEventsAPI
7
7
  external make: (~type_: string, ~eventInitDict: compositionEventInit=?) => compositionEvent =
8
8
  "CompositionEvent"
9
9
 
10
- include UIEvent.Impl({
11
- type t = compositionEvent
12
- })
10
+ include UIEvent.Impl({type t = compositionEvent})
@@ -6,6 +6,4 @@ open UIEventsAPI
6
6
  @new
7
7
  external make: (~type_: string, ~eventInitDict: focusEventInit=?) => focusEvent = "FocusEvent"
8
8
 
9
- include UIEvent.Impl({
10
- type t = focusEvent
11
- })
9
+ include UIEvent.Impl({type t = focusEvent})
@@ -13,6 +13,4 @@ external make: (~type_: string, ~eventInitDict: inputEventInit=?) => inputEvent
13
13
  @send
14
14
  external getTargetRanges: inputEvent => array<staticRange> = "getTargetRanges"
15
15
 
16
- include UIEvent.Impl({
17
- type t = inputEvent
18
- })
16
+ include UIEvent.Impl({type t = inputEvent})
@@ -13,6 +13,4 @@ external make: (~type_: string, ~eventInitDict: keyboardEventInit=?) => keyboard
13
13
  @send
14
14
  external getModifierState: (keyboardEvent, string) => bool = "getModifierState"
15
15
 
16
- include UIEvent.Impl({
17
- type t = keyboardEvent
18
- })
16
+ include UIEvent.Impl({type t = keyboardEvent})
@@ -13,9 +13,7 @@ module Impl = (
13
13
  ) => {
14
14
  external asMouseEvent: T.t => mouseEvent = "%identity"
15
15
 
16
- include UIEvent.Impl({
17
- type t = T.t
18
- })
16
+ include UIEvent.Impl({type t = T.t})
19
17
 
20
18
  /**
21
19
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MouseEvent/getModifierState)
@@ -24,6 +22,4 @@ module Impl = (
24
22
  external getModifierState: (T.t, string) => bool = "getModifierState"
25
23
  }
26
24
 
27
- include Impl({
28
- type t = mouseEvent
29
- })
25
+ include Impl({type t = mouseEvent})
@@ -18,6 +18,4 @@ external getCoalescedEvents: pointerEvent => array<pointerEvent> = "getCoalesced
18
18
  @send
19
19
  external getPredictedEvents: pointerEvent => array<pointerEvent> = "getPredictedEvents"
20
20
 
21
- include MouseEvent.Impl({
22
- type t = pointerEvent
23
- })
21
+ include MouseEvent.Impl({type t = pointerEvent})
@@ -6,6 +6,4 @@ open UIEventsAPI
6
6
  @new
7
7
  external make: (~type_: string, ~eventInitDict: touchEventInit=?) => touchEvent = "TouchEvent"
8
8
 
9
- include UIEvent.Impl({
10
- type t = touchEvent
11
- })
9
+ include UIEvent.Impl({type t = touchEvent})
@@ -13,11 +13,7 @@ module Impl = (
13
13
  ) => {
14
14
  external asUIEvent: T.t => uiEvent = "%identity"
15
15
 
16
- include Event.Impl({
17
- type t = T.t
18
- })
16
+ include Event.Impl({type t = T.t})
19
17
  }
20
18
 
21
- include Impl({
22
- type t = uiEvent
23
- })
19
+ include Impl({type t = uiEvent})
@@ -6,6 +6,4 @@ open UIEventsAPI
6
6
  @new
7
7
  external make: (~type_: string, ~eventInitDict: wheelEventInit=?) => wheelEvent = "WheelEvent"
8
8
 
9
- include MouseEvent.Impl({
10
- type t = wheelEvent
11
- })
9
+ include MouseEvent.Impl({type t = wheelEvent})
@@ -0,0 +1,37 @@
1
+ open URLAPI
2
+
3
+ /**
4
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/URL)
5
+ */
6
+ @new
7
+ external make: (~url: string, ~base: string=?) => url = "URL"
8
+
9
+ /**
10
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/URL/parse_static)
11
+ */
12
+ @scope("URL")
13
+ external parse: (~url: string, ~base: string=?) => url = "parse"
14
+
15
+ /**
16
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/URL/canParse_static)
17
+ */
18
+ @scope("URL")
19
+ external canParse: (~url: string, ~base: string=?) => bool = "canParse"
20
+
21
+ /**
22
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/URL/toJSON)
23
+ */
24
+ @send
25
+ external toJSON: url => string = "toJSON"
26
+
27
+ /**
28
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL_static)
29
+ */
30
+ @scope("URL")
31
+ external createObjectURL: unknown => string = "createObjectURL"
32
+
33
+ /**
34
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL_static)
35
+ */
36
+ @scope("URL")
37
+ external revokeObjectURL: string => unit = "revokeObjectURL"
@@ -1,4 +1,4 @@
1
- open FetchAPI
1
+ open URLAPI
2
2
 
3
3
  /**
4
4
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/URLSearchParams)
package/src/URLAPI.res ADDED
@@ -0,0 +1,68 @@
1
+ @@warning("-30")
2
+
3
+ /**
4
+ [See URLSearchParams on MDN](https://developer.mozilla.org/docs/Web/API/URLSearchParams)
5
+ */
6
+ @editor.completeFrom(URLSearchParams)
7
+ type urlSearchParams = {
8
+ /**
9
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/URLSearchParams/size)
10
+ */
11
+ size: int,
12
+ }
13
+
14
+ /**
15
+ The URL interface represents an object providing static methods used for creating object URLs.
16
+ [See URL on MDN](https://developer.mozilla.org/docs/Web/API/URL)
17
+ */
18
+ @editor.completeFrom(URL)
19
+ type url = {
20
+ /**
21
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/URL/href)
22
+ */
23
+ mutable href: string,
24
+ /**
25
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/URL/origin)
26
+ */
27
+ origin: string,
28
+ /**
29
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/URL/protocol)
30
+ */
31
+ mutable protocol: string,
32
+ /**
33
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/URL/username)
34
+ */
35
+ mutable username: string,
36
+ /**
37
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/URL/password)
38
+ */
39
+ mutable password: string,
40
+ /**
41
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/URL/host)
42
+ */
43
+ mutable host: string,
44
+ /**
45
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/URL/hostname)
46
+ */
47
+ mutable hostname: string,
48
+ /**
49
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/URL/port)
50
+ */
51
+ mutable port: string,
52
+ /**
53
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/URL/pathname)
54
+ */
55
+ mutable pathname: string,
56
+ /**
57
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/URL/search)
58
+ */
59
+ mutable search: string,
60
+ /**
61
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/URL/searchParams)
62
+ */
63
+ searchParams: urlSearchParams,
64
+ /**
65
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/URL/hash)
66
+ */
67
+ mutable hash: string,
68
+ }
@@ -1,8 +1,6 @@
1
1
  open WebAudioAPI
2
2
 
3
- include AudioNode.Impl({
4
- type t = analyserNode
5
- })
3
+ include AudioNode.Impl({type t = analyserNode})
6
4
 
7
5
  /**
8
6
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AnalyserNode)
@@ -1,8 +1,6 @@
1
1
  open WebAudioAPI
2
2
 
3
- include AudioScheduledSourceNode.Impl({
4
- type t = audioBufferSourceNode
5
- })
3
+ include AudioScheduledSourceNode.Impl({type t = audioBufferSourceNode})
6
4
 
7
5
  /**
8
6
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode)
@@ -2,9 +2,7 @@ open WebAudioAPI
2
2
  open DOMAPI
3
3
  open MediaCaptureAndStreamsAPI
4
4
 
5
- include BaseAudioContext.Impl({
6
- type t = audioContext
7
- })
5
+ include BaseAudioContext.Impl({type t = audioContext})
8
6
 
9
7
  /**
10
8
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioContext)
@@ -1,5 +1,3 @@
1
1
  open WebAudioAPI
2
2
 
3
- include AudioNode.Impl({
4
- type t = audioDestinationNode
5
- })
3
+ include AudioNode.Impl({type t = audioDestinationNode})
@@ -5,9 +5,7 @@ module Impl = (
5
5
  type t
6
6
  },
7
7
  ) => {
8
- include EventTarget.Impl({
9
- type t = T.t
10
- })
8
+ include EventTarget.Impl({type t = T.t})
11
9
 
12
10
  external asAudioNode: T.t => audioNode = "%identity"
13
11
 
@@ -1,8 +1,6 @@
1
1
  open WebAudioAPI
2
2
 
3
- include Event.Impl({
4
- type t = audioProcessingEvent
5
- })
3
+ include Event.Impl({type t = audioProcessingEvent})
6
4
 
7
5
  /**
8
6
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent)
@@ -5,9 +5,7 @@ module Impl = (
5
5
  type t
6
6
  },
7
7
  ) => {
8
- include AudioNode.Impl({
9
- type t = T.t
10
- })
8
+ include AudioNode.Impl({type t = T.t})
11
9
 
12
10
  external asAudioScheduledSourceNode: T.t => audioScheduledSourceNode = "%identity"
13
11
 
@@ -24,6 +22,4 @@ module Impl = (
24
22
  external stop: (T.t, ~when_: float=?) => unit = "stop"
25
23
  }
26
24
 
27
- include Impl({
28
- type t = audioScheduledSourceNode
29
- })
25
+ include Impl({type t = audioScheduledSourceNode})
@@ -1,8 +1,6 @@
1
1
  open WebAudioAPI
2
2
 
3
- include AudioNode.Impl({
4
- type t = audioWorkletNode
5
- })
3
+ include AudioNode.Impl({type t = audioWorkletNode})
6
4
 
7
5
  /**
8
6
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode)
@@ -5,9 +5,7 @@ module Impl = (
5
5
  type t
6
6
  },
7
7
  ) => {
8
- include EventTarget.Impl({
9
- type t = T.t
10
- })
8
+ include EventTarget.Impl({type t = T.t})
11
9
 
12
10
  external asBaseAudioContext: T.t => baseAudioContext = "%identity"
13
11
 
@@ -1,8 +1,6 @@
1
1
  open WebAudioAPI
2
2
 
3
- include AudioNode.Impl({
4
- type t = biquadFilterNode
5
- })
3
+ include AudioNode.Impl({type t = biquadFilterNode})
6
4
 
7
5
  /**
8
6
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode)
@@ -1,8 +1,6 @@
1
1
  open WebAudioAPI
2
2
 
3
- include AudioNode.Impl({
4
- type t = channelMergerNode
5
- })
3
+ include AudioNode.Impl({type t = channelMergerNode})
6
4
 
7
5
  /**
8
6
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ChannelMergerNode)
@@ -1,8 +1,6 @@
1
1
  open WebAudioAPI
2
2
 
3
- include AudioNode.Impl({
4
- type t = channelSplitterNode
5
- })
3
+ include AudioNode.Impl({type t = channelSplitterNode})
6
4
 
7
5
  /**
8
6
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ChannelSplitterNode)
@@ -1,8 +1,6 @@
1
1
  open WebAudioAPI
2
2
 
3
- include AudioScheduledSourceNode.Impl({
4
- type t = constantSourceNode
5
- })
3
+ include AudioScheduledSourceNode.Impl({type t = constantSourceNode})
6
4
 
7
5
  /**
8
6
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ConstantSourceNode)
@@ -1,8 +1,6 @@
1
1
  open WebAudioAPI
2
2
 
3
- include AudioNode.Impl({
4
- type t = convolverNode
5
- })
3
+ include AudioNode.Impl({type t = convolverNode})
6
4
 
7
5
  /**
8
6
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ConvolverNode)
@@ -1,8 +1,6 @@
1
1
  open WebAudioAPI
2
2
 
3
- include AudioNode.Impl({
4
- type t = delayNode
5
- })
3
+ include AudioNode.Impl({type t = delayNode})
6
4
 
7
5
  /**
8
6
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DelayNode)
@@ -1,8 +1,6 @@
1
1
  open WebAudioAPI
2
2
 
3
- include AudioNode.Impl({
4
- type t = dynamicsCompressorNode
5
- })
3
+ include AudioNode.Impl({type t = dynamicsCompressorNode})
6
4
 
7
5
  /**
8
6
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode)
@@ -1,8 +1,6 @@
1
1
  open WebAudioAPI
2
2
 
3
- include AudioNode.Impl({
4
- type t = gainNode
5
- })
3
+ include AudioNode.Impl({type t = gainNode})
6
4
 
7
5
  /**
8
6
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/GainNode)
@@ -1,8 +1,6 @@
1
1
  open WebAudioAPI
2
2
 
3
- include AudioNode.Impl({
4
- type t = iirFilterNode
5
- })
3
+ include AudioNode.Impl({type t = iirFilterNode})
6
4
 
7
5
  /**
8
6
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/IIRFilterNode)
@@ -1,8 +1,6 @@
1
1
  open WebAudioAPI
2
2
 
3
- include AudioNode.Impl({
4
- type t = mediaElementAudioSourceNode
5
- })
3
+ include AudioNode.Impl({type t = mediaElementAudioSourceNode})
6
4
 
7
5
  /**
8
6
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MediaElementAudioSourceNode)
@@ -1,8 +1,6 @@
1
1
  open WebAudioAPI
2
2
 
3
- include AudioNode.Impl({
4
- type t = mediaStreamAudioDestinationNode
5
- })
3
+ include AudioNode.Impl({type t = mediaStreamAudioDestinationNode})
6
4
 
7
5
  /**
8
6
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MediaStreamAudioDestinationNode)
@@ -1,8 +1,6 @@
1
1
  open WebAudioAPI
2
2
 
3
- include AudioNode.Impl({
4
- type t = mediaStreamAudioSourceNode
5
- })
3
+ include AudioNode.Impl({type t = mediaStreamAudioSourceNode})
6
4
 
7
5
  /**
8
6
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MediaStreamAudioSourceNode)
@@ -1,8 +1,6 @@
1
1
  open WebAudioAPI
2
2
 
3
- include Event.Impl({
4
- type t = offlineAudioCompletionEvent
5
- })
3
+ include Event.Impl({type t = offlineAudioCompletionEvent})
6
4
 
7
5
  /**
8
6
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/OfflineAudioCompletionEvent)