@rescript/webapi 0.1.0-experimental-2d6efc2 → 0.1.0-experimental-0781ac8

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 (480) hide show
  1. package/README.md +10 -5
  2. package/package.json +6 -4
  3. package/rescript.json +591 -4
  4. package/src/Base/ArrayBufferTypedArrayOrDataView.res +4 -0
  5. package/src/Base/BaseCSSFontLoading.res +25 -0
  6. package/src/{EncryptedMediaExtensionsAPI.res → Base/BaseEncryptedMediaExtensions.res} +12 -18
  7. package/src/Base/BaseEvent.res +6 -0
  8. package/src/Base/BaseFile.res +37 -0
  9. package/src/{FileAndDirectoryEntriesAPI.res → Base/BaseFileAndDirectoryEntries.res} +5 -22
  10. package/src/{DOMAPI.res → Base/DOM.res} +225 -2237
  11. package/src/{CSSFontLoadingAPI.res → CSSFontLoading/CssFontLoadingTypes.res} +4 -15
  12. package/src/CSSFontLoading/FontFace.res +62 -0
  13. package/src/CSSFontLoading/FontFaceSet.res +38 -0
  14. package/src/Canvas/Canvas.res +179 -0
  15. package/src/{CanvasAPI → Canvas}/CanvasGradient.res +2 -3
  16. package/src/{CanvasAPI → Canvas}/CanvasPattern.res +3 -3
  17. package/src/{DOMAPI → Canvas}/CanvasRenderingContext2D.res +178 -140
  18. package/src/{CanvasAPI.res → Canvas/CanvasTypes.res} +9 -11
  19. package/src/Canvas/FillStyle.res +25 -0
  20. package/src/{DOMAPI → Canvas}/HTMLCanvasElement.res +21 -23
  21. package/src/{CanvasAPI → Canvas}/ImageBitmap.res +1 -3
  22. package/src/{CanvasAPI → Canvas}/ImageBitmapRenderingContext.res +4 -4
  23. package/src/{CanvasAPI → Canvas}/OffscreenCanvas.res +19 -19
  24. package/src/{CanvasAPI → Canvas}/Path2D.res +63 -19
  25. package/src/Canvas/VideoFrame.res +223 -0
  26. package/src/{ChannelMessagingAPI.res → ChannelMessaging/ChannelMessagingTypes.res} +2 -4
  27. package/src/{ChannelMessagingAPI → ChannelMessaging}/MessagePort.res +8 -10
  28. package/src/Clipboard/Clipboard.res +29 -0
  29. package/src/{ClipboardAPI → Clipboard}/ClipboardItem.res +5 -6
  30. package/src/{ClipboardAPI.res → Clipboard/ClipboardTypes.res} +5 -7
  31. package/src/{CredentialManagementAPI.res → CredentialManagement/CredentialManagementTypes.res} +10 -13
  32. package/src/CredentialManagement/CredentialsContainer.res +33 -0
  33. package/src/{DOMAPI → DOM}/Animation.res +13 -13
  34. package/src/{DOMAPI → DOM}/AnimationEffect.res +7 -5
  35. package/src/{DOMAPI → DOM}/CSSRuleList.res +1 -3
  36. package/src/{DOMAPI → DOM}/CSSStyleDeclaration.res +6 -7
  37. package/src/DOM/CSSStyleSheet.res +30 -0
  38. package/src/{DOMAPI → DOM}/CSSStyleValue.res +3 -4
  39. package/src/DOM/CaretPosition.res +2 -0
  40. package/src/{DOMAPI → DOM}/CharacterData.res +5 -7
  41. package/src/DOM/Comment.res +7 -0
  42. package/src/{DOMAPI → DOM}/CustomElementRegistry.res +10 -9
  43. package/src/DOM/DOMException.res +7 -0
  44. package/src/{DOMAPI → DOM}/DOMImplementation.res +6 -8
  45. package/src/DOM/DOMMatrix.res +228 -0
  46. package/src/DOM/DOMMatrixReadOnly.res +147 -0
  47. package/src/DOM/DOMPoint.res +31 -0
  48. package/src/{DOMAPI → DOM}/DOMPointReadOnly.res +7 -7
  49. package/src/{DOMAPI → DOM}/DOMRect.res +6 -7
  50. package/src/DOM/DOMRectList.res +2 -0
  51. package/src/DOM/DOMRectReadOnly.res +19 -0
  52. package/src/{Prelude → DOM}/DOMStringList.res +3 -3
  53. package/src/{DOMAPI → DOM}/DOMTokenList.res +7 -9
  54. package/src/{DOMAPI → DOM}/Document.res +94 -80
  55. package/src/{DOMAPI → DOM}/DocumentFragment.res +10 -11
  56. package/src/DOM/DocumentTimeline.res +8 -0
  57. package/src/{Global.res → DOM/DomGlobal.res} +62 -285
  58. package/src/{DOMAPI/HTMLMediaElement.res → DOM/DomHTMLMediaElement.res} +6 -16
  59. package/src/DOM/DomTypes.res +2105 -0
  60. package/src/{DOMAPI → DOM}/Element.res +53 -44
  61. package/src/{DOMAPI → DOM}/ElementInternals.res +6 -8
  62. package/src/{DOMAPI → DOM}/FileList.res +2 -5
  63. package/src/DOM/HTMLAnchorElement.res +1 -0
  64. package/src/DOM/HTMLAreaElement.res +1 -0
  65. package/src/DOM/HTMLAudioElement.res +1 -0
  66. package/src/DOM/HTMLBRElement.res +1 -0
  67. package/src/DOM/HTMLBaseElement.res +1 -0
  68. package/src/DOM/HTMLBodyElement.res +1 -0
  69. package/src/{DOMAPI → DOM}/HTMLButtonElement.res +4 -6
  70. package/src/{DOMAPI → DOM}/HTMLCollection.res +2 -4
  71. package/src/DOM/HTMLDListElement.res +1 -0
  72. package/src/DOM/HTMLDataElement.res +1 -0
  73. package/src/DOM/HTMLDataListElement.res +1 -0
  74. package/src/{DOMAPI → DOM}/HTMLDialogElement.res +4 -6
  75. package/src/DOM/HTMLDivElement.res +1 -0
  76. package/src/{DOMAPI → DOM}/HTMLElement.res +5 -5
  77. package/src/DOM/HTMLEmbedElement.res +4 -0
  78. package/src/{DOMAPI → DOM}/HTMLFieldSetElement.res +4 -6
  79. package/src/DOM/HTMLFormControlsCollection.res +16 -0
  80. package/src/{DOMAPI → DOM}/HTMLFormElement.res +7 -7
  81. package/src/DOM/HTMLFrameSetElement.res +1 -0
  82. package/src/DOM/HTMLHRElement.res +1 -0
  83. package/src/DOM/HTMLHeadElement.res +1 -0
  84. package/src/DOM/HTMLHeadingElement.res +1 -0
  85. package/src/DOM/HTMLHtmlElement.res +1 -0
  86. package/src/DOM/HTMLIFrameElement.res +4 -0
  87. package/src/DOM/HTMLImageElement.res +7 -0
  88. package/src/{DOMAPI → DOM}/HTMLInputElement.res +12 -14
  89. package/src/DOM/HTMLLIElement.res +1 -0
  90. package/src/DOM/HTMLLabelElement.res +1 -0
  91. package/src/DOM/HTMLLegendElement.res +1 -0
  92. package/src/DOM/HTMLLinkElement.res +1 -0
  93. package/src/DOM/HTMLMapElement.res +1 -0
  94. package/src/DOM/HTMLMenuElement.res +1 -0
  95. package/src/DOM/HTMLMetaElement.res +1 -0
  96. package/src/DOM/HTMLMeterElement.res +1 -0
  97. package/src/DOM/HTMLModElement.res +1 -0
  98. package/src/DOM/HTMLOListElement.res +1 -0
  99. package/src/{DOMAPI → DOM}/HTMLObjectElement.res +5 -7
  100. package/src/DOM/HTMLOptGroupElement.res +1 -0
  101. package/src/DOM/HTMLOptionElement.res +1 -0
  102. package/src/{DOMAPI → DOM}/HTMLOptionsCollection.res +4 -5
  103. package/src/{DOMAPI → DOM}/HTMLOutputElement.res +4 -6
  104. package/src/DOM/HTMLParagraphElement.res +1 -0
  105. package/src/DOM/HTMLPictureElement.res +1 -0
  106. package/src/DOM/HTMLPreElement.res +1 -0
  107. package/src/DOM/HTMLProgressElement.res +1 -0
  108. package/src/DOM/HTMLQuoteElement.res +1 -0
  109. package/src/{DOMAPI → DOM}/HTMLScriptElement.res +1 -3
  110. package/src/{DOMAPI → DOM}/HTMLSelectElement.res +10 -12
  111. package/src/DOM/HTMLSlotElement.res +31 -0
  112. package/src/DOM/HTMLSourceElement.res +1 -0
  113. package/src/DOM/HTMLSpanElement.res +1 -0
  114. package/src/DOM/HTMLStyleElement.res +1 -0
  115. package/src/DOM/HTMLTableCaptionElement.res +1 -0
  116. package/src/DOM/HTMLTableCellElement.res +1 -0
  117. package/src/{DOMAPI → DOM}/HTMLTableElement.res +12 -12
  118. package/src/{DOMAPI → DOM}/HTMLTableRowElement.res +6 -5
  119. package/src/{DOMAPI → DOM}/HTMLTableSectionElement.res +6 -5
  120. package/src/DOM/HTMLTemplateElement.res +1 -0
  121. package/src/{DOMAPI → DOM}/HTMLTextAreaElement.res +9 -11
  122. package/src/DOM/HTMLTimeElement.res +1 -0
  123. package/src/DOM/HTMLTitleElement.res +1 -0
  124. package/src/DOM/HTMLTrackElement.res +1 -0
  125. package/src/DOM/HTMLUListElement.res +1 -0
  126. package/src/DOM/HTMLVideoElement.res +32 -0
  127. package/src/{DOMAPI → DOM}/IdleDeadline.res +1 -3
  128. package/src/{DOMAPI → DOM}/ImageData.res +4 -5
  129. package/src/{DOMAPI → DOM}/Location.res +3 -5
  130. package/src/{DOMAPI → DOM}/MediaList.res +3 -5
  131. package/src/DOM/MediaQueryList.res +1 -0
  132. package/src/{DOMAPI → DOM}/NamedNodeMap.res +15 -11
  133. package/src/DOM/Navigator.res +166 -0
  134. package/src/{DOMAPI → DOM}/Node.res +10 -11
  135. package/src/DOM/NodeFilter.res +2 -0
  136. package/src/{DOMAPI → DOM}/NodeIterator.res +2 -4
  137. package/src/{DOMAPI → DOM}/NodeList.res +1 -3
  138. package/src/{DOMAPI → DOM}/Range.res +27 -27
  139. package/src/DOM/SVGGraphicsElement.res +18 -0
  140. package/src/{DOMAPI → DOM}/SVGLength.res +2 -4
  141. package/src/DOM/ScreenOrientation.res +7 -0
  142. package/src/{DOMAPI → DOM}/Selection.res +22 -20
  143. package/src/DOM/ShadowRoot.res +19 -0
  144. package/src/DOM/StylePropertyMap.res +57 -0
  145. package/src/{DOMAPI → DOM}/StylePropertyMapReadOnly.res +3 -4
  146. package/src/{DOMAPI → DOM}/StyleSheetList.res +1 -3
  147. package/src/{DOMAPI → DOM}/Text.res +3 -5
  148. package/src/DOM/TextTrackList.res +7 -0
  149. package/src/{DOMAPI → DOM}/TimeRanges.res +2 -4
  150. package/src/{DOMAPI → DOM}/TreeWalker.res +7 -9
  151. package/src/{DOMAPI → DOM}/VideoColorSpace.res +3 -4
  152. package/src/DOM/Window.res +557 -0
  153. package/src/{DOMAPI → DOM}/XPathExpression.res +4 -6
  154. package/src/{DOMAPI → DOM}/XPathResult.res +2 -4
  155. package/src/EncryptedMediaExtensions/EncryptedMediaExtensionsHTMLMediaElement.res +15 -0
  156. package/src/EncryptedMediaExtensions/EncryptedMediaExtensionsTypes.res +43 -0
  157. package/src/{EncryptedMediaExtensionsAPI → EncryptedMediaExtensions}/MediaKeySession.res +10 -10
  158. package/src/{EncryptedMediaExtensionsAPI → EncryptedMediaExtensions}/MediaKeyStatusMap.res +2 -4
  159. package/src/EncryptedMediaExtensions/MediaKeySystemAccess.res +14 -0
  160. package/src/EncryptedMediaExtensions/MediaKeys.res +35 -0
  161. package/src/{EventAPI → Event}/AbortController.res +2 -4
  162. package/src/{EventAPI → Event}/AbortSignal.res +5 -7
  163. package/src/{EventAPI → Event}/Event.res +5 -6
  164. package/src/{EventAPI → Event}/EventTarget.res +14 -16
  165. package/src/{EventAPI.res → Event/EventTypes.res} +10 -10
  166. package/src/{EventAPI → Event}/ExtendableEvent.res +2 -4
  167. package/src/{FetchAPI → Fetch}/BodyInit.res +10 -12
  168. package/src/Fetch/Fetch.res +12 -0
  169. package/src/{FetchAPI.res → Fetch/FetchTypes.res} +19 -21
  170. package/src/{FetchAPI → Fetch}/FormData.res +16 -15
  171. package/src/Fetch/FormDataEntryValue.res +2 -0
  172. package/src/{FetchAPI → Fetch}/Headers.res +10 -12
  173. package/src/{FetchAPI → Fetch}/HeadersInit.res +4 -4
  174. package/src/{FetchAPI → Fetch}/Request.res +16 -11
  175. package/src/{FetchAPI → Fetch}/Response.res +27 -23
  176. package/src/{FileAPI → File}/Blob.res +9 -7
  177. package/src/{FileAPI → File}/File.res +5 -5
  178. package/src/File/FileSystemDirectoryHandle.res +49 -0
  179. package/src/File/FileSystemFileHandle.res +25 -0
  180. package/src/File/FileSystemHandle.res +6 -0
  181. package/src/File/FileSystemWritableFileStream.res +65 -0
  182. package/src/{FileAPI.res → File/FileTypes.res} +22 -23
  183. package/src/File/ReadableStream.res +79 -0
  184. package/src/File/WritableStream.res +27 -0
  185. package/src/{FileAPI → File}/WritableStreamDefaultController.res +1 -3
  186. package/src/FileAndDirectoryEntries/FileAndDirectoryEntriesTypes.res +35 -0
  187. package/src/FileAndDirectoryEntries/FileSystemDirectoryEntry.res +42 -0
  188. package/src/FileAndDirectoryEntries/FileSystemDirectoryReader.res +9 -0
  189. package/src/FileAndDirectoryEntries/FileSystemEntry.res +9 -0
  190. package/src/Gamepad/GamepadHapticActuator.res +16 -0
  191. package/src/{GamepadAPI.res → Gamepad/GamepadTypes.res} +4 -4
  192. package/src/Geolocation/Geolocation.res +31 -0
  193. package/src/{GeolocationAPI → Geolocation}/GeolocationCoordinates.res +1 -3
  194. package/src/{GeolocationAPI → Geolocation}/GeolocationPosition.res +1 -3
  195. package/src/{GeolocationAPI.res → Geolocation/GeolocationTypes.res} +5 -5
  196. package/src/{HistoryAPI → History}/History.res +13 -8
  197. package/src/{HistoryAPI.res → History/HistoryTypes.res} +3 -2
  198. package/src/{IndexedDBAPI → IndexedDB}/IDBDatabase.res +14 -16
  199. package/src/{IndexedDBAPI → IndexedDB}/IDBFactory.res +10 -6
  200. package/src/{IndexedDBAPI → IndexedDB}/IDBIndex.res +22 -17
  201. package/src/{IndexedDBAPI → IndexedDB}/IDBObjectStore.res +44 -33
  202. package/src/{IndexedDBAPI → IndexedDB}/IDBTransaction.res +5 -6
  203. package/src/{IndexedDBAPI.res → IndexedDB/IndexedDbTypes.res} +16 -17
  204. package/src/IntersectionObserver/IntersectionObserver.res +39 -0
  205. package/src/IntersectionObserver/IntersectionObserverRoot.res +21 -0
  206. package/src/{IntersectionObserverAPI.res → IntersectionObserver/IntersectionObserverTypes.res} +7 -9
  207. package/src/MediaCapabilities/MediaCapabilities.res +19 -0
  208. package/src/{MediaCapabilitiesAPI.res → MediaCapabilities/MediaCapabilitiesTypes.res} +3 -3
  209. package/src/{MediaCaptureAndStreamsAPI.res → MediaCaptureAndStreams/MediaCaptureAndStreamsTypes.res} +7 -8
  210. package/src/MediaCaptureAndStreams/MediaDeviceInfo.res +9 -0
  211. package/src/MediaCaptureAndStreams/MediaDevices.res +40 -0
  212. package/src/MediaCaptureAndStreams/MediaStream.res +89 -0
  213. package/src/MediaCaptureAndStreams/MediaStreamTrack.res +51 -0
  214. package/src/MediaSession/MediaMetadata.res +10 -0
  215. package/src/MediaSession/MediaSession.res +25 -0
  216. package/src/{MediaSessionAPI.res → MediaSession/MediaSessionTypes.res} +4 -2
  217. package/src/MutationObserver/MutationObserver.res +31 -0
  218. package/src/{MutationObserverAPI.res → MutationObserver/MutationObserverTypes.res} +3 -5
  219. package/src/Notification/Notification.res +46 -0
  220. package/src/{NotificationAPI.res → Notification/NotificationTypes.res} +5 -7
  221. package/src/Performance/Performance.res +101 -0
  222. package/src/{PerformanceAPI → Performance}/PerformanceEntry.res +1 -3
  223. package/src/Performance/PerformanceMark.res +16 -0
  224. package/src/{PerformanceAPI.res → Performance/PerformanceTypes.res} +9 -12
  225. package/src/Permissions/Permissions.res +10 -0
  226. package/src/{PermissionsAPI.res → Permissions/PermissionsTypes.res} +4 -6
  227. package/src/PictureInPicture/PictureInPicture.res +7 -0
  228. package/src/{PictureInPictureAPI.res → PictureInPicture/PictureInPictureTypes.res} +1 -3
  229. package/src/Push/ApplicationServerKey.res +2 -0
  230. package/src/Push/PushEvent.res +3 -0
  231. package/src/Push/PushManager.res +24 -0
  232. package/src/{PushAPI → Push}/PushMessageData.res +3 -3
  233. package/src/{PushAPI → Push}/PushSubscription.res +4 -5
  234. package/src/{PushAPI.res → Push/PushTypes.res} +6 -8
  235. package/src/RemotePlayback/RemotePlayback.res +25 -0
  236. package/src/{RemotePlaybackAPI.res → RemotePlayback/RemotePlaybackTypes.res} +4 -6
  237. package/src/ResizeObserver/ResizeObserver.res +30 -0
  238. package/src/{ResizeObserverAPI.res → ResizeObserver/ResizeObserverTypes.res} +5 -7
  239. package/src/{ScreenWakeLockAPI.res → ScreenWakeLock/ScreenWakeLockTypes.res} +3 -5
  240. package/src/ScreenWakeLock/WakeLock.res +8 -0
  241. package/src/ScreenWakeLock/WakeLockSentinel.res +7 -0
  242. package/src/ServiceWorker/Cache.res +117 -0
  243. package/src/{ServiceWorkerAPI → ServiceWorker}/Clients.res +14 -7
  244. package/src/{ServiceWorkerAPI → ServiceWorker}/NavigationPreloadManager.res +7 -6
  245. package/src/ServiceWorker/ServiceWorker.res +38 -0
  246. package/src/ServiceWorker/ServiceWorkerContainer.res +34 -0
  247. package/src/{ServiceWorkerAPI → ServiceWorker}/ServiceWorkerRegistration.res +8 -11
  248. package/src/ServiceWorker/ServiceWorkerScope.res +12 -0
  249. package/src/{ServiceWorkerAPI.res → ServiceWorker/ServiceWorkerTypes.res} +18 -23
  250. package/src/{StorageAPI → Storage}/StorageManager.res +5 -7
  251. package/src/{StorageAPI.res → Storage/StorageTypes.res} +1 -1
  252. package/src/UIEvents/CompositionEvent.res +10 -0
  253. package/src/{UIEventsAPI → UIEvents}/DataTransfer.res +10 -8
  254. package/src/{UIEventsAPI → UIEvents}/DataTransferItem.res +5 -8
  255. package/src/{UIEventsAPI → UIEvents}/DataTransferItemList.res +11 -7
  256. package/src/UIEvents/FocusEvent.res +10 -0
  257. package/src/UIEvents/InputEvent.res +16 -0
  258. package/src/UIEvents/KeyboardEvent.res +16 -0
  259. package/src/{UIEventsAPI → UIEvents}/MouseEvent.res +6 -5
  260. package/src/UIEvents/PointerEvent.res +24 -0
  261. package/src/{UIEventsAPI → UIEvents}/Touch.res +1 -3
  262. package/src/UIEvents/TouchEvent.res +10 -0
  263. package/src/{UIEventsAPI → UIEvents}/TouchList.res +1 -3
  264. package/src/UIEvents/UIEvent.res +20 -0
  265. package/src/{UIEventsAPI.res → UIEvents/UiEventsTypes.res} +28 -30
  266. package/src/UIEvents/WheelEvent.res +10 -0
  267. package/src/{URLAPI → URL}/URL.res +6 -5
  268. package/src/{URLAPI → URL}/URLSearchParams.res +20 -17
  269. package/src/{URLAPI.res → URL/UrlTypes.res} +5 -4
  270. package/src/{ViewTransitionsAPI → ViewTransitions}/ViewTransition.res +1 -3
  271. package/src/{ViewTransitionsAPI.res → ViewTransitions/ViewTransitionsTypes.res} +1 -1
  272. package/src/VisualViewport/VisualViewport.res +5 -0
  273. package/src/{VisualViewportAPI.res → VisualViewport/VisualViewportTypes.res} +2 -4
  274. package/src/WebAudio/AnalyserNode.res +38 -0
  275. package/src/{WebAudioAPI → WebAudio}/AudioBuffer.res +4 -6
  276. package/src/{WebAudioAPI → WebAudio}/AudioBufferSourceNode.res +5 -7
  277. package/src/WebAudio/AudioContext.res +59 -0
  278. package/src/WebAudio/AudioDestinationNode.res +1 -0
  279. package/src/{WebAudioAPI → WebAudio}/AudioNode.res +21 -12
  280. package/src/{WebAudioAPI → WebAudio}/AudioParam.res +23 -14
  281. package/src/WebAudio/AudioProcessingEvent.res +10 -0
  282. package/src/{WebAudioAPI → WebAudio}/AudioScheduledSourceNode.res +2 -4
  283. package/src/WebAudio/AudioWorkletNode.res +11 -0
  284. package/src/{WebAudioAPI → WebAudio}/BaseAudioContext.res +26 -25
  285. package/src/{WebAudioAPI → WebAudio}/BiquadFilterNode.res +6 -6
  286. package/src/WebAudio/ChannelMergerNode.res +10 -0
  287. package/src/WebAudio/ChannelSplitterNode.res +10 -0
  288. package/src/WebAudio/ConstantSourceNode.res +10 -0
  289. package/src/WebAudio/ConvolverNode.res +10 -0
  290. package/src/WebAudio/DelayNode.res +10 -0
  291. package/src/WebAudio/DynamicsCompressorNode.res +10 -0
  292. package/src/WebAudio/GainNode.res +10 -0
  293. package/src/{WebAudioAPI → WebAudio}/IIRFilterNode.res +6 -6
  294. package/src/WebAudio/MediaElementAudioSourceNode.res +10 -0
  295. package/src/WebAudio/MediaStreamAudioDestinationNode.res +10 -0
  296. package/src/WebAudio/MediaStreamAudioSourceNode.res +10 -0
  297. package/src/WebAudio/OfflineAudioCompletionEvent.res +10 -0
  298. package/src/WebAudio/OfflineAudioContext.res +58 -0
  299. package/src/WebAudio/OscillatorNode.res +17 -0
  300. package/src/WebAudio/PannerNode.res +10 -0
  301. package/src/WebAudio/PeriodicWave.res +8 -0
  302. package/src/WebAudio/StereoPannerNode.res +10 -0
  303. package/src/WebAudio/WaveShaperNode.res +10 -0
  304. package/src/{WebAudioAPI.res → WebAudio/WebAudioTypes.res} +55 -42
  305. package/src/{WebAudioAPI → WebAudio}/Worklet.res +5 -4
  306. package/src/{WebCryptoAPI → WebCrypto}/Crypto.res +2 -4
  307. package/src/WebCrypto/SubtleCrypto.res +173 -0
  308. package/src/{WebCryptoAPI.res → WebCrypto/WebCryptoTypes.res} +3 -5
  309. package/src/WebLocks/LockManager.res +26 -0
  310. package/src/{WebLocksAPI.res → WebLocks/WebLocksTypes.res} +2 -4
  311. package/src/WebMIDI/WebMIDI.res +7 -0
  312. package/src/{WebMIDIAPI.res → WebMIDI/WebMidiTypes.res} +1 -3
  313. package/src/WebSockets/CloseEvent.res +10 -0
  314. package/src/{WebSocketsAPI → WebSockets}/MessageEvent.res +14 -9
  315. package/src/WebSockets/WebSocket.res +71 -0
  316. package/src/{WebSocketsAPI.res → WebSockets/WebSocketsTypes.res} +12 -15
  317. package/src/{WebSpeechAPI → WebSpeech}/SpeechSynthesis.res +8 -8
  318. package/src/WebSpeech/SpeechSynthesisUtterance.res +8 -0
  319. package/src/{WebSpeechAPI.res → WebSpeech/WebSpeechTypes.res} +4 -5
  320. package/src/{WebStorageAPI → WebStorage}/Storage.res +8 -10
  321. package/src/WebStorage/StorageEvent.res +10 -0
  322. package/src/{WebStorageAPI.res → WebStorage/WebStorageTypes.res} +9 -11
  323. package/src/{WebVTTAPI → WebVTT}/TextTrack.res +3 -5
  324. package/src/{WebVTTAPI → WebVTT}/TextTrackCueList.res +2 -3
  325. package/src/{WebVTTAPI.res → WebVTT/WebVttTypes.res} +5 -5
  326. package/src/WebWorkers/CacheStorage.res +43 -0
  327. package/src/{WebWorkersAPI → WebWorkers}/SharedWorker.res +13 -12
  328. package/src/{WebWorkersAPI/SharedWorkerGlobalScope.res → WebWorkers/SharedWorkerScope.res} +6 -4
  329. package/src/{WebWorkersAPI.res → WebWorkers/WebWorkersTypes.res} +7 -10
  330. package/src/{WebWorkersAPI/WorkerGlobalScope.res → WebWorkers/Worker.res} +8 -8
  331. package/src/CSSFontLoadingAPI/FontFace.res +0 -34
  332. package/src/CSSFontLoadingAPI/FontFaceSet.res +0 -33
  333. package/src/CanvasAPI/FillStyle.res +0 -24
  334. package/src/ClipboardAPI/Clipboard.res +0 -27
  335. package/src/CredentialManagementAPI/CredentialsContainer.res +0 -29
  336. package/src/DOMAPI/CSSStyleSheet.res +0 -32
  337. package/src/DOMAPI/CaretPosition.res +0 -4
  338. package/src/DOMAPI/Comment.res +0 -9
  339. package/src/DOMAPI/DOMMatrix.res +0 -169
  340. package/src/DOMAPI/DOMMatrixReadOnly.res +0 -103
  341. package/src/DOMAPI/DOMPoint.res +0 -29
  342. package/src/DOMAPI/DOMRectList.res +0 -4
  343. package/src/DOMAPI/DOMRectReadOnly.res +0 -17
  344. package/src/DOMAPI/DocumentTimeline.res +0 -9
  345. package/src/DOMAPI/HTMLAnchorElement.res +0 -3
  346. package/src/DOMAPI/HTMLAreaElement.res +0 -3
  347. package/src/DOMAPI/HTMLAudioElement.res +0 -3
  348. package/src/DOMAPI/HTMLBRElement.res +0 -3
  349. package/src/DOMAPI/HTMLBaseElement.res +0 -3
  350. package/src/DOMAPI/HTMLBodyElement.res +0 -3
  351. package/src/DOMAPI/HTMLDListElement.res +0 -3
  352. package/src/DOMAPI/HTMLDataElement.res +0 -3
  353. package/src/DOMAPI/HTMLDataListElement.res +0 -3
  354. package/src/DOMAPI/HTMLDivElement.res +0 -3
  355. package/src/DOMAPI/HTMLEmbedElement.res +0 -6
  356. package/src/DOMAPI/HTMLFormControlsCollection.res +0 -16
  357. package/src/DOMAPI/HTMLFrameSetElement.res +0 -3
  358. package/src/DOMAPI/HTMLHRElement.res +0 -3
  359. package/src/DOMAPI/HTMLHeadElement.res +0 -3
  360. package/src/DOMAPI/HTMLHeadingElement.res +0 -3
  361. package/src/DOMAPI/HTMLHtmlElement.res +0 -3
  362. package/src/DOMAPI/HTMLIFrameElement.res +0 -6
  363. package/src/DOMAPI/HTMLImageElement.res +0 -9
  364. package/src/DOMAPI/HTMLLIElement.res +0 -3
  365. package/src/DOMAPI/HTMLLabelElement.res +0 -3
  366. package/src/DOMAPI/HTMLLegendElement.res +0 -3
  367. package/src/DOMAPI/HTMLLinkElement.res +0 -3
  368. package/src/DOMAPI/HTMLMapElement.res +0 -3
  369. package/src/DOMAPI/HTMLMenuElement.res +0 -3
  370. package/src/DOMAPI/HTMLMetaElement.res +0 -3
  371. package/src/DOMAPI/HTMLMeterElement.res +0 -3
  372. package/src/DOMAPI/HTMLModElement.res +0 -3
  373. package/src/DOMAPI/HTMLOListElement.res +0 -3
  374. package/src/DOMAPI/HTMLOptGroupElement.res +0 -3
  375. package/src/DOMAPI/HTMLOptionElement.res +0 -3
  376. package/src/DOMAPI/HTMLParagraphElement.res +0 -3
  377. package/src/DOMAPI/HTMLPictureElement.res +0 -3
  378. package/src/DOMAPI/HTMLPreElement.res +0 -3
  379. package/src/DOMAPI/HTMLProgressElement.res +0 -3
  380. package/src/DOMAPI/HTMLQuoteElement.res +0 -3
  381. package/src/DOMAPI/HTMLSlotElement.res +0 -29
  382. package/src/DOMAPI/HTMLSourceElement.res +0 -3
  383. package/src/DOMAPI/HTMLSpanElement.res +0 -3
  384. package/src/DOMAPI/HTMLStyleElement.res +0 -3
  385. package/src/DOMAPI/HTMLTableCaptionElement.res +0 -3
  386. package/src/DOMAPI/HTMLTableCellElement.res +0 -3
  387. package/src/DOMAPI/HTMLTemplateElement.res +0 -3
  388. package/src/DOMAPI/HTMLTimeElement.res +0 -3
  389. package/src/DOMAPI/HTMLTitleElement.res +0 -3
  390. package/src/DOMAPI/HTMLTrackElement.res +0 -3
  391. package/src/DOMAPI/HTMLUListElement.res +0 -3
  392. package/src/DOMAPI/HTMLVideoElement.res +0 -31
  393. package/src/DOMAPI/MediaQueryList.res +0 -3
  394. package/src/DOMAPI/Navigator.res +0 -115
  395. package/src/DOMAPI/NodeFilter.res +0 -4
  396. package/src/DOMAPI/SVGGraphicsElement.res +0 -17
  397. package/src/DOMAPI/ScreenOrientation.res +0 -9
  398. package/src/DOMAPI/ShadowRoot.res +0 -21
  399. package/src/DOMAPI/StylePropertyMap.res +0 -50
  400. package/src/DOMAPI/TextTrackList.res +0 -10
  401. package/src/DOMAPI/VideoFrame.res +0 -111
  402. package/src/DOMAPI/Window.res +0 -517
  403. package/src/EncryptedMediaExtensionsAPI/MediaKeySystemAccess.res +0 -13
  404. package/src/EncryptedMediaExtensionsAPI/MediaKeys.res +0 -27
  405. package/src/FetchAPI/FormDataEntryValue.res +0 -22
  406. package/src/FileAPI/FileSystemDirectoryHandle.res +0 -45
  407. package/src/FileAPI/FileSystemFileHandle.res +0 -23
  408. package/src/FileAPI/FileSystemHandle.res +0 -7
  409. package/src/FileAPI/FileSystemWritableFileStream.res +0 -62
  410. package/src/FileAPI/ReadableStream.res +0 -60
  411. package/src/FileAPI/WritableStream.res +0 -28
  412. package/src/FileAndDirectoryEntriesAPI/FileSystemDirectoryEntry.res +0 -42
  413. package/src/FileAndDirectoryEntriesAPI/FileSystemDirectoryReader.res +0 -11
  414. package/src/FileAndDirectoryEntriesAPI/FileSystemEntry.res +0 -11
  415. package/src/GamepadAPI/GamepadHapticActuator.res +0 -17
  416. package/src/GeolocationAPI/Geolocation.res +0 -29
  417. package/src/IntersectionObserverAPI/IntersectionObserver.res +0 -35
  418. package/src/IntersectionObserverAPI/IntersectionObserverRoot.res +0 -22
  419. package/src/MediaCapabilitiesAPI/MediaCapabilities.res +0 -19
  420. package/src/MediaCaptureAndStreamsAPI/MediaDeviceInfo.res +0 -7
  421. package/src/MediaCaptureAndStreamsAPI/MediaDevices.res +0 -34
  422. package/src/MediaCaptureAndStreamsAPI/MediaStream.res +0 -63
  423. package/src/MediaCaptureAndStreamsAPI/MediaStreamTrack.res +0 -42
  424. package/src/MediaSessionAPI/MediaMetadata.res +0 -7
  425. package/src/MediaSessionAPI/MediaSession.res +0 -17
  426. package/src/MutationObserverAPI/MutationObserver.res +0 -27
  427. package/src/NotificationAPI/Notification.res +0 -29
  428. package/src/PerformanceAPI/Performance.res +0 -90
  429. package/src/PerformanceAPI/PerformanceMark.res +0 -15
  430. package/src/PermissionsAPI/Permissions.res +0 -7
  431. package/src/Prelude/DOMException.res +0 -7
  432. package/src/Prelude.res +0 -37
  433. package/src/PushAPI/ApplicationServerKey.res +0 -4
  434. package/src/PushAPI/PushEvent.res +0 -3
  435. package/src/PushAPI/PushManager.res +0 -25
  436. package/src/RemotePlaybackAPI/RemotePlayback.res +0 -23
  437. package/src/ResizeObserverAPI/ResizeObserver.res +0 -27
  438. package/src/ScreenWakeLockAPI/WakeLock.res +0 -7
  439. package/src/ScreenWakeLockAPI/WakeLockSentinel.res +0 -9
  440. package/src/ServiceWorkerAPI/Cache.res +0 -100
  441. package/src/ServiceWorkerAPI/ServiceWorker.res +0 -21
  442. package/src/ServiceWorkerAPI/ServiceWorkerContainer.res +0 -35
  443. package/src/ServiceWorkerAPI/ServiceWorkerGlobalScope.res +0 -10
  444. package/src/UIEventsAPI/CompositionEvent.res +0 -10
  445. package/src/UIEventsAPI/FocusEvent.res +0 -9
  446. package/src/UIEventsAPI/InputEvent.res +0 -16
  447. package/src/UIEventsAPI/KeyboardEvent.res +0 -16
  448. package/src/UIEventsAPI/PointerEvent.res +0 -21
  449. package/src/UIEventsAPI/TouchEvent.res +0 -9
  450. package/src/UIEventsAPI/UIEvent.res +0 -19
  451. package/src/UIEventsAPI/WheelEvent.res +0 -9
  452. package/src/WebAudioAPI/AnalyserNode.res +0 -34
  453. package/src/WebAudioAPI/AudioContext.res +0 -56
  454. package/src/WebAudioAPI/AudioDestinationNode.res +0 -3
  455. package/src/WebAudioAPI/AudioProcessingEvent.res +0 -10
  456. package/src/WebAudioAPI/AudioWorkletNode.res +0 -13
  457. package/src/WebAudioAPI/ChannelMergerNode.res +0 -10
  458. package/src/WebAudioAPI/ChannelSplitterNode.res +0 -12
  459. package/src/WebAudioAPI/ConstantSourceNode.res +0 -12
  460. package/src/WebAudioAPI/ConvolverNode.res +0 -10
  461. package/src/WebAudioAPI/DelayNode.res +0 -9
  462. package/src/WebAudioAPI/DynamicsCompressorNode.res +0 -12
  463. package/src/WebAudioAPI/GainNode.res +0 -9
  464. package/src/WebAudioAPI/MediaElementAudioSourceNode.res +0 -12
  465. package/src/WebAudioAPI/MediaStreamAudioDestinationNode.res +0 -12
  466. package/src/WebAudioAPI/MediaStreamAudioSourceNode.res +0 -12
  467. package/src/WebAudioAPI/OfflineAudioCompletionEvent.res +0 -12
  468. package/src/WebAudioAPI/OfflineAudioContext.res +0 -34
  469. package/src/WebAudioAPI/OscillatorNode.res +0 -16
  470. package/src/WebAudioAPI/PannerNode.res +0 -9
  471. package/src/WebAudioAPI/PeriodicWave.res +0 -8
  472. package/src/WebAudioAPI/StereoPannerNode.res +0 -10
  473. package/src/WebAudioAPI/WaveShaperNode.res +0 -10
  474. package/src/WebCryptoAPI/SubtleCrypto.res +0 -173
  475. package/src/WebLocksAPI/LockManager.res +0 -25
  476. package/src/WebSocketsAPI/CloseEvent.res +0 -9
  477. package/src/WebSocketsAPI/WebSocket.res +0 -51
  478. package/src/WebSpeechAPI/SpeechSynthesisUtterance.res +0 -9
  479. package/src/WebStorageAPI/StorageEvent.res +0 -9
  480. package/src/WebWorkersAPI/CacheStorage.res +0 -46
@@ -0,0 +1,4 @@
1
+ include HTMLElement.Impl({type t = DomTypes.htmliFrameElement})
2
+
3
+ @send
4
+ external getSVGDocument: DomTypes.htmliFrameElement => DomTypes.document = "getSVGDocument"
@@ -0,0 +1,7 @@
1
+ include HTMLElement.Impl({type t = DomTypes.htmlImageElement})
2
+
3
+ /**
4
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/decode)
5
+ */
6
+ @send
7
+ external decode: DomTypes.htmlImageElement => promise<unit> = "decode"
@@ -1,6 +1,4 @@
1
- open DOMAPI
2
-
3
- include HTMLElement.Impl({type t = htmlInputElement})
1
+ include HTMLElement.Impl({type t = DomTypes.htmlInputElement})
4
2
 
5
3
  /**
6
4
  Increments a range input control's value by the value given by the Step attribute. If the optional parameter is used, will increment the input control's value by that value.
@@ -8,7 +6,7 @@ Increments a range input control's value by the value given by the Step attribut
8
6
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/stepUp)
9
7
  */
10
8
  @send
11
- external stepUp: (htmlInputElement, ~n: int=?) => unit = "stepUp"
9
+ external stepUp: (DomTypes.htmlInputElement, ~n: int=?) => unit = "stepUp"
12
10
 
13
11
  /**
14
12
  Decrements a range input control's value by the value given by the Step attribute. If the optional parameter is used, it will decrement the input control's step value multiplied by the parameter's value.
@@ -16,20 +14,20 @@ Decrements a range input control's value by the value given by the Step attribut
16
14
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/stepDown)
17
15
  */
18
16
  @send
19
- external stepDown: (htmlInputElement, ~n: int=?) => unit = "stepDown"
17
+ external stepDown: (DomTypes.htmlInputElement, ~n: int=?) => unit = "stepDown"
20
18
 
21
19
  /**
22
20
  Returns whether a form will validate when it is submitted, without having to submit it.
23
21
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/checkValidity)
24
22
  */
25
23
  @send
26
- external checkValidity: htmlInputElement => bool = "checkValidity"
24
+ external checkValidity: DomTypes.htmlInputElement => bool = "checkValidity"
27
25
 
28
26
  /**
29
27
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/reportValidity)
30
28
  */
31
29
  @send
32
- external reportValidity: htmlInputElement => bool = "reportValidity"
30
+ external reportValidity: DomTypes.htmlInputElement => bool = "reportValidity"
33
31
 
34
32
  /**
35
33
  Sets a custom error message that is displayed when a form is submitted.
@@ -37,31 +35,31 @@ Sets a custom error message that is displayed when a form is submitted.
37
35
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/setCustomValidity)
38
36
  */
39
37
  @send
40
- external setCustomValidity: (htmlInputElement, string) => unit = "setCustomValidity"
38
+ external setCustomValidity: (DomTypes.htmlInputElement, string) => unit = "setCustomValidity"
41
39
 
42
40
  /**
43
41
  Makes the selection equal to the current object.
44
42
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/select)
45
43
  */
46
44
  @send
47
- external select: htmlInputElement => unit = "select"
45
+ external select: DomTypes.htmlInputElement => unit = "select"
48
46
 
49
47
  /**
50
48
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/setRangeText)
51
49
  */
52
50
  @send
53
- external setRangeText: (htmlInputElement, string) => unit = "setRangeText"
51
+ external setRangeText: (DomTypes.htmlInputElement, string) => unit = "setRangeText"
54
52
 
55
53
  /**
56
54
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/setRangeText)
57
55
  */
58
56
  @send
59
57
  external setRangeText2: (
60
- htmlInputElement,
58
+ DomTypes.htmlInputElement,
61
59
  ~replacement: string,
62
60
  ~start: int,
63
61
  ~end: int,
64
- ~selectionMode: selectionMode=?,
62
+ ~selectionMode: DomTypes.selectionMode=?,
65
63
  ) => unit = "setRangeText"
66
64
 
67
65
  /**
@@ -73,7 +71,7 @@ Sets the start and end positions of a selection in a text field.
73
71
  */
74
72
  @send
75
73
  external setSelectionRange: (
76
- htmlInputElement,
74
+ DomTypes.htmlInputElement,
77
75
  ~start: int,
78
76
  ~end: int,
79
77
  ~direction: string=?,
@@ -83,4 +81,4 @@ external setSelectionRange: (
83
81
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/showPicker)
84
82
  */
85
83
  @send
86
- external showPicker: htmlInputElement => unit = "showPicker"
84
+ external showPicker: DomTypes.htmlInputElement => unit = "showPicker"
@@ -0,0 +1 @@
1
+ include HTMLElement.Impl({type t = DomTypes.htmlliElement})
@@ -0,0 +1 @@
1
+ include HTMLElement.Impl({type t = DomTypes.htmlLabelElement})
@@ -0,0 +1 @@
1
+ include HTMLElement.Impl({type t = DomTypes.htmlLegendElement})
@@ -0,0 +1 @@
1
+ include HTMLElement.Impl({type t = DomTypes.htmlLinkElement})
@@ -0,0 +1 @@
1
+ include HTMLElement.Impl({type t = DomTypes.htmlMapElement})
@@ -0,0 +1 @@
1
+ include HTMLElement.Impl({type t = DomTypes.htmlMenuElement})
@@ -0,0 +1 @@
1
+ include HTMLElement.Impl({type t = DomTypes.htmlMetaElement})
@@ -0,0 +1 @@
1
+ include HTMLElement.Impl({type t = DomTypes.htmlMeterElement})
@@ -0,0 +1 @@
1
+ include HTMLElement.Impl({type t = DomTypes.htmlModElement})
@@ -0,0 +1 @@
1
+ include HTMLElement.Impl({type t = DomTypes.htmloListElement})
@@ -1,22 +1,20 @@
1
- open DOMAPI
2
-
3
- include HTMLElement.Impl({type t = htmlObjectElement})
1
+ include HTMLElement.Impl({type t = DomTypes.htmlObjectElement})
4
2
 
5
3
  @send
6
- external getSVGDocument: htmlObjectElement => document = "getSVGDocument"
4
+ external getSVGDocument: DomTypes.htmlObjectElement => DomTypes.document = "getSVGDocument"
7
5
 
8
6
  /**
9
7
  Returns whether a form will validate when it is submitted, without having to submit it.
10
8
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/checkValidity)
11
9
  */
12
10
  @send
13
- external checkValidity: htmlObjectElement => bool = "checkValidity"
11
+ external checkValidity: DomTypes.htmlObjectElement => bool = "checkValidity"
14
12
 
15
13
  /**
16
14
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/reportValidity)
17
15
  */
18
16
  @send
19
- external reportValidity: htmlObjectElement => bool = "reportValidity"
17
+ external reportValidity: DomTypes.htmlObjectElement => bool = "reportValidity"
20
18
 
21
19
  /**
22
20
  Sets a custom error message that is displayed when a form is submitted.
@@ -24,4 +22,4 @@ Sets a custom error message that is displayed when a form is submitted.
24
22
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/setCustomValidity)
25
23
  */
26
24
  @send
27
- external setCustomValidity: (htmlObjectElement, string) => unit = "setCustomValidity"
25
+ external setCustomValidity: (DomTypes.htmlObjectElement, string) => unit = "setCustomValidity"
@@ -0,0 +1 @@
1
+ include HTMLElement.Impl({type t = DomTypes.htmlOptGroupElement})
@@ -0,0 +1 @@
1
+ include HTMLElement.Impl({type t = DomTypes.htmlOptionElement})
@@ -1,7 +1,5 @@
1
- open DOMAPI
2
-
3
1
  /**
4
- Inserts element before the node given by before.
2
+ Inserts element before the DomTypes.node given by before.
5
3
 
6
4
  The before argument can be a number, in which case element is inserted before the item with that number, or an element from the collection, in which case element is inserted before that element.
7
5
 
@@ -11,11 +9,12 @@ This method will throw a "HierarchyRequestError" DOMException if element is an a
11
9
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/add)
12
10
  */
13
11
  @send
14
- external add: (htmlOptionsCollection, ~element: unknown, ~before: unknown=?) => unit = "add"
12
+ external add: (DomTypes.htmlOptionsCollection, ~element: unknown, ~before: unknown=?) => unit =
13
+ "add"
15
14
 
16
15
  /**
17
16
  Removes the item with index index from the collection.
18
17
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/remove)
19
18
  */
20
19
  @send
21
- external remove: (htmlOptionsCollection, int) => unit = "remove"
20
+ external remove: (DomTypes.htmlOptionsCollection, int) => unit = "remove"
@@ -1,21 +1,19 @@
1
- open DOMAPI
2
-
3
- include HTMLElement.Impl({type t = htmlOutputElement})
1
+ include HTMLElement.Impl({type t = DomTypes.htmlOutputElement})
4
2
 
5
3
  /**
6
4
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/checkValidity)
7
5
  */
8
6
  @send
9
- external checkValidity: htmlOutputElement => bool = "checkValidity"
7
+ external checkValidity: DomTypes.htmlOutputElement => bool = "checkValidity"
10
8
 
11
9
  /**
12
10
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/reportValidity)
13
11
  */
14
12
  @send
15
- external reportValidity: htmlOutputElement => bool = "reportValidity"
13
+ external reportValidity: DomTypes.htmlOutputElement => bool = "reportValidity"
16
14
 
17
15
  /**
18
16
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/setCustomValidity)
19
17
  */
20
18
  @send
21
- external setCustomValidity: (htmlOutputElement, string) => unit = "setCustomValidity"
19
+ external setCustomValidity: (DomTypes.htmlOutputElement, string) => unit = "setCustomValidity"
@@ -0,0 +1 @@
1
+ include HTMLElement.Impl({type t = DomTypes.htmlParagraphElement})
@@ -0,0 +1 @@
1
+ include HTMLElement.Impl({type t = DomTypes.htmlPictureElement})
@@ -0,0 +1 @@
1
+ include HTMLElement.Impl({type t = DomTypes.htmlPreElement})
@@ -0,0 +1 @@
1
+ include HTMLElement.Impl({type t = DomTypes.htmlProgressElement})
@@ -0,0 +1 @@
1
+ include HTMLElement.Impl({type t = DomTypes.htmlQuoteElement})
@@ -1,6 +1,4 @@
1
- open DOMAPI
2
-
3
- include HTMLElement.Impl({type t = htmlScriptElement})
1
+ include HTMLElement.Impl({type t = DomTypes.htmlScriptElement})
4
2
 
5
3
  /**
6
4
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/supports_static)
@@ -1,5 +1,3 @@
1
- open DOMAPI
2
-
3
1
  /**
4
2
  Retrieves a select object or an object from an options collection.
5
3
  @param name Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is an integer, it is the zero-based index of the object. If this parameter is a string, all objects with matching name or id properties are retrieved, and a collection is returned if more than one match is made.
@@ -7,7 +5,7 @@ Retrieves a select object or an object from an options collection.
7
5
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/item)
8
6
  */
9
7
  @send
10
- external item: (htmlSelectElement, int) => htmlOptionElement = "item"
8
+ external item: (DomTypes.htmlSelectElement, int) => DomTypes.htmlOptionElement = "item"
11
9
 
12
10
  /**
13
11
  Retrieves a select object or an object from an options collection.
@@ -15,7 +13,7 @@ Retrieves a select object or an object from an options collection.
15
13
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/namedItem)
16
14
  */
17
15
  @send
18
- external namedItem: (htmlSelectElement, string) => htmlOptionElement = "namedItem"
16
+ external namedItem: (DomTypes.htmlSelectElement, string) => DomTypes.htmlOptionElement = "namedItem"
19
17
 
20
18
  /**
21
19
  Adds an element to the areas, controlRange, or options collection.
@@ -24,7 +22,7 @@ Adds an element to the areas, controlRange, or options collection.
24
22
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/add)
25
23
  */
26
24
  @send
27
- external add: (htmlSelectElement, ~element: unknown, ~before: unknown=?) => unit = "add"
25
+ external add: (DomTypes.htmlSelectElement, ~element: unknown, ~before: unknown=?) => unit = "add"
28
26
 
29
27
  /**
30
28
  Removes an element from the collection.
@@ -32,7 +30,7 @@ Removes an element from the collection.
32
30
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/remove)
33
31
  */
34
32
  @send
35
- external removeH: htmlSelectElement => unit = "remove"
33
+ external removeH: DomTypes.htmlSelectElement => unit = "remove"
36
34
 
37
35
  /**
38
36
  Removes an element from the collection.
@@ -40,20 +38,20 @@ Removes an element from the collection.
40
38
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/remove)
41
39
  */
42
40
  @send
43
- external removeH2: (htmlSelectElement, int) => unit = "remove"
41
+ external removeH2: (DomTypes.htmlSelectElement, int) => unit = "remove"
44
42
 
45
43
  /**
46
44
  Returns whether a form will validate when it is submitted, without having to submit it.
47
45
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/checkValidity)
48
46
  */
49
47
  @send
50
- external checkValidity: htmlSelectElement => bool = "checkValidity"
48
+ external checkValidity: DomTypes.htmlSelectElement => bool = "checkValidity"
51
49
 
52
50
  /**
53
51
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/reportValidity)
54
52
  */
55
53
  @send
56
- external reportValidity: htmlSelectElement => bool = "reportValidity"
54
+ external reportValidity: DomTypes.htmlSelectElement => bool = "reportValidity"
57
55
 
58
56
  /**
59
57
  Sets a custom error message that is displayed when a form is submitted.
@@ -61,12 +59,12 @@ Sets a custom error message that is displayed when a form is submitted.
61
59
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/setCustomValidity)
62
60
  */
63
61
  @send
64
- external setCustomValidity: (htmlSelectElement, string) => unit = "setCustomValidity"
62
+ external setCustomValidity: (DomTypes.htmlSelectElement, string) => unit = "setCustomValidity"
65
63
 
66
64
  /**
67
65
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/showPicker)
68
66
  */
69
67
  @send
70
- external showPicker: htmlSelectElement => unit = "showPicker"
68
+ external showPicker: DomTypes.htmlSelectElement => unit = "showPicker"
71
69
 
72
- include HTMLElement.Impl({type t = htmlSelectElement})
70
+ include HTMLElement.Impl({type t = DomTypes.htmlSelectElement})
@@ -0,0 +1,31 @@
1
+ include HTMLElement.Impl({type t = DomTypes.htmlSlotElement})
2
+
3
+ /**
4
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/assignedNodes)
5
+ */
6
+ @send
7
+ external assignedNodes: (
8
+ DomTypes.htmlSlotElement,
9
+ ~options: DomTypes.assignedNodesOptions=?,
10
+ ) => array<DomTypes.node> = "assignedNodes"
11
+
12
+ /**
13
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/assignedElements)
14
+ */
15
+ @send
16
+ external assignedElements: (
17
+ DomTypes.htmlSlotElement,
18
+ ~options: DomTypes.assignedNodesOptions=?,
19
+ ) => array<DomTypes.element> = "assignedElements"
20
+
21
+ /**
22
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/assign)
23
+ */
24
+ @send
25
+ external assign: (DomTypes.htmlSlotElement, DomTypes.element) => unit = "assign"
26
+
27
+ /**
28
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/assign)
29
+ */
30
+ @send
31
+ external assign2: (DomTypes.htmlSlotElement, DomTypes.text) => unit = "assign"
@@ -0,0 +1 @@
1
+ include HTMLElement.Impl({type t = DomTypes.htmlSourceElement})
@@ -0,0 +1 @@
1
+ include HTMLElement.Impl({type t = DomTypes.htmlSpanElement})
@@ -0,0 +1 @@
1
+ include HTMLElement.Impl({type t = DomTypes.htmlStyleElement})
@@ -0,0 +1 @@
1
+ include HTMLElement.Impl({type t = DomTypes.htmlTableCaptionElement})
@@ -0,0 +1 @@
1
+ include HTMLElement.Impl({type t = DomTypes.htmlTableCellElement})
@@ -1,55 +1,54 @@
1
- open DOMAPI
2
-
3
- include HTMLElement.Impl({type t = htmlTableElement})
1
+ include HTMLElement.Impl({type t = DomTypes.htmlTableElement})
4
2
 
5
3
  /**
6
4
  Creates an empty caption element in the table.
7
5
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createCaption)
8
6
  */
9
7
  @send
10
- external createCaption: htmlTableElement => htmlTableCaptionElement = "createCaption"
8
+ external createCaption: DomTypes.htmlTableElement => DomTypes.htmlTableCaptionElement =
9
+ "createCaption"
11
10
 
12
11
  /**
13
12
  Deletes the caption element and its contents from the table.
14
13
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteCaption)
15
14
  */
16
15
  @send
17
- external deleteCaption: htmlTableElement => unit = "deleteCaption"
16
+ external deleteCaption: DomTypes.htmlTableElement => unit = "deleteCaption"
18
17
 
19
18
  /**
20
19
  Returns the tHead element object if successful, or null otherwise.
21
20
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createTHead)
22
21
  */
23
22
  @send
24
- external createTHead: htmlTableElement => htmlTableSectionElement = "createTHead"
23
+ external createTHead: DomTypes.htmlTableElement => DomTypes.htmlTableSectionElement = "createTHead"
25
24
 
26
25
  /**
27
26
  Deletes the tHead element and its contents from the table.
28
27
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteTHead)
29
28
  */
30
29
  @send
31
- external deleteTHead: htmlTableElement => unit = "deleteTHead"
30
+ external deleteTHead: DomTypes.htmlTableElement => unit = "deleteTHead"
32
31
 
33
32
  /**
34
33
  Creates an empty tFoot element in the table.
35
34
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createTFoot)
36
35
  */
37
36
  @send
38
- external createTFoot: htmlTableElement => htmlTableSectionElement = "createTFoot"
37
+ external createTFoot: DomTypes.htmlTableElement => DomTypes.htmlTableSectionElement = "createTFoot"
39
38
 
40
39
  /**
41
40
  Deletes the tFoot element and its contents from the table.
42
41
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteTFoot)
43
42
  */
44
43
  @send
45
- external deleteTFoot: htmlTableElement => unit = "deleteTFoot"
44
+ external deleteTFoot: DomTypes.htmlTableElement => unit = "deleteTFoot"
46
45
 
47
46
  /**
48
47
  Creates an empty tBody element in the table.
49
48
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createTBody)
50
49
  */
51
50
  @send
52
- external createTBody: htmlTableElement => htmlTableSectionElement = "createTBody"
51
+ external createTBody: DomTypes.htmlTableElement => DomTypes.htmlTableSectionElement = "createTBody"
53
52
 
54
53
  /**
55
54
  Creates a new row (tr) in the table, and adds the row to the rows collection.
@@ -57,7 +56,8 @@ Creates a new row (tr) in the table, and adds the row to the rows collection.
57
56
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/insertRow)
58
57
  */
59
58
  @send
60
- external insertRow: (htmlTableElement, ~index: int=?) => htmlTableRowElement = "insertRow"
59
+ external insertRow: (DomTypes.htmlTableElement, ~index: int=?) => DomTypes.htmlTableRowElement =
60
+ "insertRow"
61
61
 
62
62
  /**
63
63
  Removes the specified row (tr) from the element and from the rows collection.
@@ -65,4 +65,4 @@ Removes the specified row (tr) from the element and from the rows collection.
65
65
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteRow)
66
66
  */
67
67
  @send
68
- external deleteRow: (htmlTableElement, int) => unit = "deleteRow"
68
+ external deleteRow: (DomTypes.htmlTableElement, int) => unit = "deleteRow"
@@ -1,6 +1,4 @@
1
- open DOMAPI
2
-
3
- include HTMLElement.Impl({type t = htmlTableRowElement})
1
+ include HTMLElement.Impl({type t = DomTypes.htmlTableRowElement})
4
2
 
5
3
  /**
6
4
  Creates a new cell in the table row, and adds the cell to the cells collection.
@@ -8,7 +6,10 @@ Creates a new cell in the table row, and adds the cell to the cells collection.
8
6
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/insertCell)
9
7
  */
10
8
  @send
11
- external insertCell: (htmlTableRowElement, ~index: int=?) => htmlTableCellElement = "insertCell"
9
+ external insertCell: (
10
+ DomTypes.htmlTableRowElement,
11
+ ~index: int=?,
12
+ ) => DomTypes.htmlTableCellElement = "insertCell"
12
13
 
13
14
  /**
14
15
  Removes the specified cell from the table row, as well as from the cells collection.
@@ -16,4 +17,4 @@ Removes the specified cell from the table row, as well as from the cells collect
16
17
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/deleteCell)
17
18
  */
18
19
  @send
19
- external deleteCell: (htmlTableRowElement, int) => unit = "deleteCell"
20
+ external deleteCell: (DomTypes.htmlTableRowElement, int) => unit = "deleteCell"
@@ -1,6 +1,4 @@
1
- open DOMAPI
2
-
3
- include HTMLElement.Impl({type t = htmlTableSectionElement})
1
+ include HTMLElement.Impl({type t = DomTypes.htmlTableSectionElement})
4
2
 
5
3
  /**
6
4
  Creates a new row (tr) in the table, and adds the row to the rows collection.
@@ -8,7 +6,10 @@ Creates a new row (tr) in the table, and adds the row to the rows collection.
8
6
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/insertRow)
9
7
  */
10
8
  @send
11
- external insertRow: (htmlTableSectionElement, ~index: int=?) => htmlTableRowElement = "insertRow"
9
+ external insertRow: (
10
+ DomTypes.htmlTableSectionElement,
11
+ ~index: int=?,
12
+ ) => DomTypes.htmlTableRowElement = "insertRow"
12
13
 
13
14
  /**
14
15
  Removes the specified row (tr) from the element and from the rows collection.
@@ -16,4 +17,4 @@ Removes the specified row (tr) from the element and from the rows collection.
16
17
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/deleteRow)
17
18
  */
18
19
  @send
19
- external deleteRow: (htmlTableSectionElement, int) => unit = "deleteRow"
20
+ external deleteRow: (DomTypes.htmlTableSectionElement, int) => unit = "deleteRow"
@@ -0,0 +1 @@
1
+ include HTMLElement.Impl({type t = DomTypes.htmlTemplateElement})
@@ -1,19 +1,17 @@
1
- open DOMAPI
2
-
3
- include HTMLElement.Impl({type t = htmlTextAreaElement})
1
+ include HTMLElement.Impl({type t = DomTypes.htmlTextAreaElement})
4
2
 
5
3
  /**
6
4
  Returns whether a form will validate when it is submitted, without having to submit it.
7
5
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/checkValidity)
8
6
  */
9
7
  @send
10
- external checkValidity: htmlTextAreaElement => bool = "checkValidity"
8
+ external checkValidity: DomTypes.htmlTextAreaElement => bool = "checkValidity"
11
9
 
12
10
  /**
13
11
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/reportValidity)
14
12
  */
15
13
  @send
16
- external reportValidity: htmlTextAreaElement => bool = "reportValidity"
14
+ external reportValidity: DomTypes.htmlTextAreaElement => bool = "reportValidity"
17
15
 
18
16
  /**
19
17
  Sets a custom error message that is displayed when a form is submitted.
@@ -21,31 +19,31 @@ Sets a custom error message that is displayed when a form is submitted.
21
19
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/setCustomValidity)
22
20
  */
23
21
  @send
24
- external setCustomValidity: (htmlTextAreaElement, string) => unit = "setCustomValidity"
22
+ external setCustomValidity: (DomTypes.htmlTextAreaElement, string) => unit = "setCustomValidity"
25
23
 
26
24
  /**
27
25
  Highlights the input area of a form element.
28
26
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/select)
29
27
  */
30
28
  @send
31
- external select: htmlTextAreaElement => unit = "select"
29
+ external select: DomTypes.htmlTextAreaElement => unit = "select"
32
30
 
33
31
  /**
34
32
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/setRangeText)
35
33
  */
36
34
  @send
37
- external setRangeText: (htmlTextAreaElement, string) => unit = "setRangeText"
35
+ external setRangeText: (DomTypes.htmlTextAreaElement, string) => unit = "setRangeText"
38
36
 
39
37
  /**
40
38
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/setRangeText)
41
39
  */
42
40
  @send
43
41
  external setRangeText2: (
44
- htmlTextAreaElement,
42
+ DomTypes.htmlTextAreaElement,
45
43
  ~replacement: string,
46
44
  ~start: int,
47
45
  ~end: int,
48
- ~selectionMode: selectionMode=?,
46
+ ~selectionMode: DomTypes.selectionMode=?,
49
47
  ) => unit = "setRangeText"
50
48
 
51
49
  /**
@@ -57,7 +55,7 @@ Sets the start and end positions of a selection in a text field.
57
55
  */
58
56
  @send
59
57
  external setSelectionRange: (
60
- htmlTextAreaElement,
58
+ DomTypes.htmlTextAreaElement,
61
59
  ~start: int,
62
60
  ~end: int,
63
61
  ~direction: string=?,
@@ -0,0 +1 @@
1
+ include HTMLElement.Impl({type t = DomTypes.htmlTimeElement})
@@ -0,0 +1 @@
1
+ include HTMLElement.Impl({type t = DomTypes.htmlTitleElement})
@@ -0,0 +1 @@
1
+ include HTMLElement.Impl({type t = DomTypes.htmlTrackElement})
@@ -0,0 +1 @@
1
+ include HTMLElement.Impl({type t = DomTypes.htmluListElement})
@@ -0,0 +1,32 @@
1
+ include DomHTMLMediaElement.Impl({type t = DomTypes.htmlVideoElement})
2
+
3
+ /**
4
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/getVideoPlaybackQuality)
5
+ */
6
+ @send
7
+ external getVideoPlaybackQuality: DomTypes.htmlVideoElement => DomTypes.videoPlaybackQuality =
8
+ "getVideoPlaybackQuality"
9
+
10
+ /**
11
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/requestPictureInPicture)
12
+ */
13
+ @send
14
+ external requestPictureInPicture: DomTypes.htmlVideoElement => promise<
15
+ PictureInPictureTypes.pictureInPictureWindow,
16
+ > = "requestPictureInPicture"
17
+
18
+ /**
19
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/requestVideoFrameCallback)
20
+ */
21
+ @send
22
+ external requestVideoFrameCallback: (
23
+ DomTypes.htmlVideoElement,
24
+ (float, DomTypes.videoFrameCallbackMetadata) => unit,
25
+ ) => int = "requestVideoFrameCallback"
26
+
27
+ /**
28
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/cancelVideoFrameCallback)
29
+ */
30
+ @send
31
+ external cancelVideoFrameCallback: (DomTypes.htmlVideoElement, int) => unit =
32
+ "cancelVideoFrameCallback"