@rescript/webapi 0.1.0-experimental-61b1074 → 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.
- package/README.md +10 -5
- package/package.json +6 -4
- package/rescript.json +591 -4
- package/src/Base/ArrayBufferTypedArrayOrDataView.res +4 -0
- package/src/Base/BaseCSSFontLoading.res +25 -0
- package/src/{EncryptedMediaExtensionsAPI.res → Base/BaseEncryptedMediaExtensions.res} +12 -18
- package/src/Base/BaseEvent.res +6 -0
- package/src/Base/BaseFile.res +37 -0
- package/src/{FileAndDirectoryEntriesAPI.res → Base/BaseFileAndDirectoryEntries.res} +5 -22
- package/src/{DOMAPI.res → Base/DOM.res} +225 -2237
- package/src/{CSSFontLoadingAPI.res → CSSFontLoading/CssFontLoadingTypes.res} +4 -15
- package/src/CSSFontLoading/FontFace.res +62 -0
- package/src/CSSFontLoading/FontFaceSet.res +38 -0
- package/src/Canvas/Canvas.res +179 -0
- package/src/{CanvasAPI → Canvas}/CanvasGradient.res +2 -3
- package/src/{CanvasAPI → Canvas}/CanvasPattern.res +3 -3
- package/src/{DOMAPI → Canvas}/CanvasRenderingContext2D.res +178 -140
- package/src/{CanvasAPI.res → Canvas/CanvasTypes.res} +9 -11
- package/src/Canvas/FillStyle.res +25 -0
- package/src/{DOMAPI → Canvas}/HTMLCanvasElement.res +21 -23
- package/src/{CanvasAPI → Canvas}/ImageBitmap.res +1 -3
- package/src/{CanvasAPI → Canvas}/ImageBitmapRenderingContext.res +4 -4
- package/src/{CanvasAPI → Canvas}/OffscreenCanvas.res +19 -19
- package/src/{CanvasAPI → Canvas}/Path2D.res +63 -19
- package/src/Canvas/VideoFrame.res +223 -0
- package/src/{ChannelMessagingAPI.res → ChannelMessaging/ChannelMessagingTypes.res} +2 -4
- package/src/{ChannelMessagingAPI → ChannelMessaging}/MessagePort.res +8 -10
- package/src/Clipboard/Clipboard.res +29 -0
- package/src/{ClipboardAPI → Clipboard}/ClipboardItem.res +5 -6
- package/src/{ClipboardAPI.res → Clipboard/ClipboardTypes.res} +5 -7
- package/src/{CredentialManagementAPI.res → CredentialManagement/CredentialManagementTypes.res} +10 -13
- package/src/CredentialManagement/CredentialsContainer.res +33 -0
- package/src/{DOMAPI → DOM}/Animation.res +13 -13
- package/src/{DOMAPI → DOM}/AnimationEffect.res +7 -5
- package/src/{DOMAPI → DOM}/CSSRuleList.res +1 -3
- package/src/{DOMAPI → DOM}/CSSStyleDeclaration.res +6 -7
- package/src/DOM/CSSStyleSheet.res +30 -0
- package/src/{DOMAPI → DOM}/CSSStyleValue.res +3 -4
- package/src/DOM/CaretPosition.res +2 -0
- package/src/{DOMAPI → DOM}/CharacterData.res +5 -7
- package/src/DOM/Comment.res +7 -0
- package/src/{DOMAPI → DOM}/CustomElementRegistry.res +10 -9
- package/src/DOM/DOMException.res +7 -0
- package/src/{DOMAPI → DOM}/DOMImplementation.res +6 -8
- package/src/DOM/DOMMatrix.res +228 -0
- package/src/DOM/DOMMatrixReadOnly.res +147 -0
- package/src/DOM/DOMPoint.res +31 -0
- package/src/{DOMAPI → DOM}/DOMPointReadOnly.res +7 -7
- package/src/{DOMAPI → DOM}/DOMRect.res +6 -7
- package/src/DOM/DOMRectList.res +2 -0
- package/src/DOM/DOMRectReadOnly.res +19 -0
- package/src/{Prelude → DOM}/DOMStringList.res +3 -3
- package/src/{DOMAPI → DOM}/DOMTokenList.res +7 -9
- package/src/{DOMAPI → DOM}/Document.res +94 -80
- package/src/{DOMAPI → DOM}/DocumentFragment.res +10 -11
- package/src/DOM/DocumentTimeline.res +8 -0
- package/src/{Global.res → DOM/DomGlobal.res} +62 -285
- package/src/{DOMAPI/HTMLMediaElement.res → DOM/DomHTMLMediaElement.res} +6 -16
- package/src/DOM/DomTypes.res +2105 -0
- package/src/{DOMAPI → DOM}/Element.res +53 -44
- package/src/{DOMAPI → DOM}/ElementInternals.res +6 -8
- package/src/{DOMAPI → DOM}/FileList.res +2 -5
- package/src/DOM/HTMLAnchorElement.res +1 -0
- package/src/DOM/HTMLAreaElement.res +1 -0
- package/src/DOM/HTMLAudioElement.res +1 -0
- package/src/DOM/HTMLBRElement.res +1 -0
- package/src/DOM/HTMLBaseElement.res +1 -0
- package/src/DOM/HTMLBodyElement.res +1 -0
- package/src/{DOMAPI → DOM}/HTMLButtonElement.res +4 -6
- package/src/{DOMAPI → DOM}/HTMLCollection.res +2 -4
- package/src/DOM/HTMLDListElement.res +1 -0
- package/src/DOM/HTMLDataElement.res +1 -0
- package/src/DOM/HTMLDataListElement.res +1 -0
- package/src/{DOMAPI → DOM}/HTMLDialogElement.res +4 -6
- package/src/DOM/HTMLDivElement.res +1 -0
- package/src/{DOMAPI → DOM}/HTMLElement.res +5 -5
- package/src/DOM/HTMLEmbedElement.res +4 -0
- package/src/{DOMAPI → DOM}/HTMLFieldSetElement.res +4 -6
- package/src/DOM/HTMLFormControlsCollection.res +16 -0
- package/src/{DOMAPI → DOM}/HTMLFormElement.res +7 -7
- package/src/DOM/HTMLFrameSetElement.res +1 -0
- package/src/DOM/HTMLHRElement.res +1 -0
- package/src/DOM/HTMLHeadElement.res +1 -0
- package/src/DOM/HTMLHeadingElement.res +1 -0
- package/src/DOM/HTMLHtmlElement.res +1 -0
- package/src/DOM/HTMLIFrameElement.res +4 -0
- package/src/DOM/HTMLImageElement.res +7 -0
- package/src/{DOMAPI → DOM}/HTMLInputElement.res +12 -14
- package/src/DOM/HTMLLIElement.res +1 -0
- package/src/DOM/HTMLLabelElement.res +1 -0
- package/src/DOM/HTMLLegendElement.res +1 -0
- package/src/DOM/HTMLLinkElement.res +1 -0
- package/src/DOM/HTMLMapElement.res +1 -0
- package/src/DOM/HTMLMenuElement.res +1 -0
- package/src/DOM/HTMLMetaElement.res +1 -0
- package/src/DOM/HTMLMeterElement.res +1 -0
- package/src/DOM/HTMLModElement.res +1 -0
- package/src/DOM/HTMLOListElement.res +1 -0
- package/src/{DOMAPI → DOM}/HTMLObjectElement.res +5 -7
- package/src/DOM/HTMLOptGroupElement.res +1 -0
- package/src/DOM/HTMLOptionElement.res +1 -0
- package/src/{DOMAPI → DOM}/HTMLOptionsCollection.res +4 -5
- package/src/{DOMAPI → DOM}/HTMLOutputElement.res +4 -6
- package/src/DOM/HTMLParagraphElement.res +1 -0
- package/src/DOM/HTMLPictureElement.res +1 -0
- package/src/DOM/HTMLPreElement.res +1 -0
- package/src/DOM/HTMLProgressElement.res +1 -0
- package/src/DOM/HTMLQuoteElement.res +1 -0
- package/src/{DOMAPI → DOM}/HTMLScriptElement.res +1 -3
- package/src/{DOMAPI → DOM}/HTMLSelectElement.res +10 -12
- package/src/DOM/HTMLSlotElement.res +31 -0
- package/src/DOM/HTMLSourceElement.res +1 -0
- package/src/DOM/HTMLSpanElement.res +1 -0
- package/src/DOM/HTMLStyleElement.res +1 -0
- package/src/DOM/HTMLTableCaptionElement.res +1 -0
- package/src/DOM/HTMLTableCellElement.res +1 -0
- package/src/{DOMAPI → DOM}/HTMLTableElement.res +12 -12
- package/src/{DOMAPI → DOM}/HTMLTableRowElement.res +6 -5
- package/src/{DOMAPI → DOM}/HTMLTableSectionElement.res +6 -5
- package/src/DOM/HTMLTemplateElement.res +1 -0
- package/src/{DOMAPI → DOM}/HTMLTextAreaElement.res +9 -11
- package/src/DOM/HTMLTimeElement.res +1 -0
- package/src/DOM/HTMLTitleElement.res +1 -0
- package/src/DOM/HTMLTrackElement.res +1 -0
- package/src/DOM/HTMLUListElement.res +1 -0
- package/src/DOM/HTMLVideoElement.res +32 -0
- package/src/{DOMAPI → DOM}/IdleDeadline.res +1 -3
- package/src/{DOMAPI → DOM}/ImageData.res +4 -5
- package/src/{DOMAPI → DOM}/Location.res +3 -5
- package/src/{DOMAPI → DOM}/MediaList.res +3 -5
- package/src/DOM/MediaQueryList.res +1 -0
- package/src/{DOMAPI → DOM}/NamedNodeMap.res +15 -11
- package/src/DOM/Navigator.res +166 -0
- package/src/{DOMAPI → DOM}/Node.res +10 -11
- package/src/DOM/NodeFilter.res +2 -0
- package/src/{DOMAPI → DOM}/NodeIterator.res +2 -4
- package/src/{DOMAPI → DOM}/NodeList.res +1 -3
- package/src/{DOMAPI → DOM}/Range.res +27 -27
- package/src/DOM/SVGGraphicsElement.res +18 -0
- package/src/{DOMAPI → DOM}/SVGLength.res +2 -4
- package/src/DOM/ScreenOrientation.res +7 -0
- package/src/{DOMAPI → DOM}/Selection.res +22 -20
- package/src/DOM/ShadowRoot.res +19 -0
- package/src/DOM/StylePropertyMap.res +57 -0
- package/src/{DOMAPI → DOM}/StylePropertyMapReadOnly.res +3 -4
- package/src/{DOMAPI → DOM}/StyleSheetList.res +1 -3
- package/src/{DOMAPI → DOM}/Text.res +3 -5
- package/src/DOM/TextTrackList.res +7 -0
- package/src/{DOMAPI → DOM}/TimeRanges.res +2 -4
- package/src/{DOMAPI → DOM}/TreeWalker.res +7 -9
- package/src/{DOMAPI → DOM}/VideoColorSpace.res +3 -4
- package/src/DOM/Window.res +557 -0
- package/src/{DOMAPI → DOM}/XPathExpression.res +4 -6
- package/src/{DOMAPI → DOM}/XPathResult.res +2 -4
- package/src/EncryptedMediaExtensions/EncryptedMediaExtensionsHTMLMediaElement.res +15 -0
- package/src/EncryptedMediaExtensions/EncryptedMediaExtensionsTypes.res +43 -0
- package/src/{EncryptedMediaExtensionsAPI → EncryptedMediaExtensions}/MediaKeySession.res +10 -10
- package/src/{EncryptedMediaExtensionsAPI → EncryptedMediaExtensions}/MediaKeyStatusMap.res +2 -4
- package/src/EncryptedMediaExtensions/MediaKeySystemAccess.res +14 -0
- package/src/EncryptedMediaExtensions/MediaKeys.res +35 -0
- package/src/{EventAPI → Event}/AbortController.res +2 -4
- package/src/{EventAPI → Event}/AbortSignal.res +5 -7
- package/src/{EventAPI → Event}/Event.res +5 -6
- package/src/{EventAPI → Event}/EventTarget.res +14 -16
- package/src/{EventAPI.res → Event/EventTypes.res} +10 -10
- package/src/{EventAPI → Event}/ExtendableEvent.res +2 -4
- package/src/{FetchAPI → Fetch}/BodyInit.res +10 -12
- package/src/Fetch/Fetch.res +12 -0
- package/src/{FetchAPI.res → Fetch/FetchTypes.res} +19 -21
- package/src/{FetchAPI → Fetch}/FormData.res +16 -15
- package/src/Fetch/FormDataEntryValue.res +2 -0
- package/src/{FetchAPI → Fetch}/Headers.res +10 -12
- package/src/{FetchAPI → Fetch}/HeadersInit.res +4 -4
- package/src/{FetchAPI → Fetch}/Request.res +16 -11
- package/src/{FetchAPI → Fetch}/Response.res +27 -23
- package/src/{FileAPI → File}/Blob.res +9 -7
- package/src/{FileAPI → File}/File.res +5 -5
- package/src/File/FileSystemDirectoryHandle.res +49 -0
- package/src/File/FileSystemFileHandle.res +25 -0
- package/src/File/FileSystemHandle.res +6 -0
- package/src/File/FileSystemWritableFileStream.res +65 -0
- package/src/{FileAPI.res → File/FileTypes.res} +22 -23
- package/src/File/ReadableStream.res +79 -0
- package/src/File/WritableStream.res +27 -0
- package/src/{FileAPI → File}/WritableStreamDefaultController.res +1 -3
- package/src/FileAndDirectoryEntries/FileAndDirectoryEntriesTypes.res +35 -0
- package/src/FileAndDirectoryEntries/FileSystemDirectoryEntry.res +42 -0
- package/src/FileAndDirectoryEntries/FileSystemDirectoryReader.res +9 -0
- package/src/FileAndDirectoryEntries/FileSystemEntry.res +9 -0
- package/src/Gamepad/GamepadHapticActuator.res +16 -0
- package/src/{GamepadAPI.res → Gamepad/GamepadTypes.res} +4 -4
- package/src/Geolocation/Geolocation.res +31 -0
- package/src/{GeolocationAPI → Geolocation}/GeolocationCoordinates.res +1 -3
- package/src/{GeolocationAPI → Geolocation}/GeolocationPosition.res +1 -3
- package/src/{GeolocationAPI.res → Geolocation/GeolocationTypes.res} +5 -5
- package/src/{HistoryAPI → History}/History.res +13 -8
- package/src/{HistoryAPI.res → History/HistoryTypes.res} +3 -2
- package/src/{IndexedDBAPI → IndexedDB}/IDBDatabase.res +14 -16
- package/src/{IndexedDBAPI → IndexedDB}/IDBFactory.res +10 -6
- package/src/{IndexedDBAPI → IndexedDB}/IDBIndex.res +22 -17
- package/src/{IndexedDBAPI → IndexedDB}/IDBObjectStore.res +44 -33
- package/src/{IndexedDBAPI → IndexedDB}/IDBTransaction.res +5 -6
- package/src/{IndexedDBAPI.res → IndexedDB/IndexedDbTypes.res} +16 -17
- package/src/IntersectionObserver/IntersectionObserver.res +39 -0
- package/src/IntersectionObserver/IntersectionObserverRoot.res +21 -0
- package/src/{IntersectionObserverAPI.res → IntersectionObserver/IntersectionObserverTypes.res} +7 -9
- package/src/MediaCapabilities/MediaCapabilities.res +19 -0
- package/src/{MediaCapabilitiesAPI.res → MediaCapabilities/MediaCapabilitiesTypes.res} +3 -3
- package/src/{MediaCaptureAndStreamsAPI.res → MediaCaptureAndStreams/MediaCaptureAndStreamsTypes.res} +7 -8
- package/src/MediaCaptureAndStreams/MediaDeviceInfo.res +9 -0
- package/src/MediaCaptureAndStreams/MediaDevices.res +40 -0
- package/src/MediaCaptureAndStreams/MediaStream.res +89 -0
- package/src/MediaCaptureAndStreams/MediaStreamTrack.res +51 -0
- package/src/MediaSession/MediaMetadata.res +10 -0
- package/src/MediaSession/MediaSession.res +25 -0
- package/src/{MediaSessionAPI.res → MediaSession/MediaSessionTypes.res} +4 -2
- package/src/MutationObserver/MutationObserver.res +31 -0
- package/src/{MutationObserverAPI.res → MutationObserver/MutationObserverTypes.res} +3 -5
- package/src/Notification/Notification.res +46 -0
- package/src/{NotificationAPI.res → Notification/NotificationTypes.res} +5 -7
- package/src/Performance/Performance.res +101 -0
- package/src/{PerformanceAPI → Performance}/PerformanceEntry.res +1 -3
- package/src/Performance/PerformanceMark.res +16 -0
- package/src/{PerformanceAPI.res → Performance/PerformanceTypes.res} +9 -12
- package/src/Permissions/Permissions.res +10 -0
- package/src/{PermissionsAPI.res → Permissions/PermissionsTypes.res} +4 -6
- package/src/PictureInPicture/PictureInPicture.res +7 -0
- package/src/{PictureInPictureAPI.res → PictureInPicture/PictureInPictureTypes.res} +1 -3
- package/src/Push/ApplicationServerKey.res +2 -0
- package/src/Push/PushEvent.res +3 -0
- package/src/Push/PushManager.res +24 -0
- package/src/{PushAPI → Push}/PushMessageData.res +3 -3
- package/src/{PushAPI → Push}/PushSubscription.res +4 -5
- package/src/{PushAPI.res → Push/PushTypes.res} +6 -8
- package/src/RemotePlayback/RemotePlayback.res +25 -0
- package/src/{RemotePlaybackAPI.res → RemotePlayback/RemotePlaybackTypes.res} +4 -6
- package/src/ResizeObserver/ResizeObserver.res +30 -0
- package/src/{ResizeObserverAPI.res → ResizeObserver/ResizeObserverTypes.res} +5 -7
- package/src/{ScreenWakeLockAPI.res → ScreenWakeLock/ScreenWakeLockTypes.res} +3 -5
- package/src/ScreenWakeLock/WakeLock.res +8 -0
- package/src/ScreenWakeLock/WakeLockSentinel.res +7 -0
- package/src/ServiceWorker/Cache.res +117 -0
- package/src/{ServiceWorkerAPI → ServiceWorker}/Clients.res +14 -7
- package/src/{ServiceWorkerAPI → ServiceWorker}/NavigationPreloadManager.res +7 -6
- package/src/ServiceWorker/ServiceWorker.res +38 -0
- package/src/ServiceWorker/ServiceWorkerContainer.res +34 -0
- package/src/{ServiceWorkerAPI → ServiceWorker}/ServiceWorkerRegistration.res +8 -11
- package/src/ServiceWorker/ServiceWorkerScope.res +12 -0
- package/src/{ServiceWorkerAPI.res → ServiceWorker/ServiceWorkerTypes.res} +18 -23
- package/src/{StorageAPI → Storage}/StorageManager.res +5 -7
- package/src/{StorageAPI.res → Storage/StorageTypes.res} +1 -1
- package/src/UIEvents/CompositionEvent.res +10 -0
- package/src/{UIEventsAPI → UIEvents}/DataTransfer.res +10 -8
- package/src/{UIEventsAPI → UIEvents}/DataTransferItem.res +5 -8
- package/src/{UIEventsAPI → UIEvents}/DataTransferItemList.res +11 -7
- package/src/UIEvents/FocusEvent.res +10 -0
- package/src/UIEvents/InputEvent.res +16 -0
- package/src/UIEvents/KeyboardEvent.res +16 -0
- package/src/{UIEventsAPI → UIEvents}/MouseEvent.res +6 -5
- package/src/UIEvents/PointerEvent.res +24 -0
- package/src/{UIEventsAPI → UIEvents}/Touch.res +1 -3
- package/src/UIEvents/TouchEvent.res +10 -0
- package/src/{UIEventsAPI → UIEvents}/TouchList.res +1 -3
- package/src/UIEvents/UIEvent.res +20 -0
- package/src/{UIEventsAPI.res → UIEvents/UiEventsTypes.res} +28 -30
- package/src/UIEvents/WheelEvent.res +10 -0
- package/src/{URLAPI → URL}/URL.res +6 -5
- package/src/{URLAPI → URL}/URLSearchParams.res +20 -17
- package/src/{URLAPI.res → URL/UrlTypes.res} +5 -4
- package/src/{ViewTransitionsAPI → ViewTransitions}/ViewTransition.res +1 -3
- package/src/{ViewTransitionsAPI.res → ViewTransitions/ViewTransitionsTypes.res} +1 -1
- package/src/VisualViewport/VisualViewport.res +5 -0
- package/src/{VisualViewportAPI.res → VisualViewport/VisualViewportTypes.res} +2 -4
- package/src/WebAudio/AnalyserNode.res +38 -0
- package/src/{WebAudioAPI → WebAudio}/AudioBuffer.res +4 -6
- package/src/{WebAudioAPI → WebAudio}/AudioBufferSourceNode.res +5 -7
- package/src/WebAudio/AudioContext.res +59 -0
- package/src/WebAudio/AudioDestinationNode.res +1 -0
- package/src/{WebAudioAPI → WebAudio}/AudioNode.res +21 -12
- package/src/{WebAudioAPI → WebAudio}/AudioParam.res +23 -14
- package/src/WebAudio/AudioProcessingEvent.res +10 -0
- package/src/{WebAudioAPI → WebAudio}/AudioScheduledSourceNode.res +2 -4
- package/src/WebAudio/AudioWorkletNode.res +11 -0
- package/src/{WebAudioAPI → WebAudio}/BaseAudioContext.res +26 -25
- package/src/{WebAudioAPI → WebAudio}/BiquadFilterNode.res +6 -6
- package/src/WebAudio/ChannelMergerNode.res +10 -0
- package/src/WebAudio/ChannelSplitterNode.res +10 -0
- package/src/WebAudio/ConstantSourceNode.res +10 -0
- package/src/WebAudio/ConvolverNode.res +10 -0
- package/src/WebAudio/DelayNode.res +10 -0
- package/src/WebAudio/DynamicsCompressorNode.res +10 -0
- package/src/WebAudio/GainNode.res +10 -0
- package/src/{WebAudioAPI → WebAudio}/IIRFilterNode.res +6 -6
- package/src/WebAudio/MediaElementAudioSourceNode.res +10 -0
- package/src/WebAudio/MediaStreamAudioDestinationNode.res +10 -0
- package/src/WebAudio/MediaStreamAudioSourceNode.res +10 -0
- package/src/WebAudio/OfflineAudioCompletionEvent.res +10 -0
- package/src/WebAudio/OfflineAudioContext.res +58 -0
- package/src/WebAudio/OscillatorNode.res +17 -0
- package/src/WebAudio/PannerNode.res +10 -0
- package/src/WebAudio/PeriodicWave.res +8 -0
- package/src/WebAudio/StereoPannerNode.res +10 -0
- package/src/WebAudio/WaveShaperNode.res +10 -0
- package/src/{WebAudioAPI.res → WebAudio/WebAudioTypes.res} +55 -42
- package/src/{WebAudioAPI → WebAudio}/Worklet.res +5 -4
- package/src/{WebCryptoAPI → WebCrypto}/Crypto.res +2 -4
- package/src/WebCrypto/SubtleCrypto.res +173 -0
- package/src/{WebCryptoAPI.res → WebCrypto/WebCryptoTypes.res} +3 -5
- package/src/WebLocks/LockManager.res +26 -0
- package/src/{WebLocksAPI.res → WebLocks/WebLocksTypes.res} +2 -4
- package/src/WebMIDI/WebMIDI.res +7 -0
- package/src/{WebMIDIAPI.res → WebMIDI/WebMidiTypes.res} +1 -3
- package/src/WebSockets/CloseEvent.res +10 -0
- package/src/{WebSocketsAPI → WebSockets}/MessageEvent.res +14 -9
- package/src/WebSockets/WebSocket.res +71 -0
- package/src/{WebSocketsAPI.res → WebSockets/WebSocketsTypes.res} +12 -15
- package/src/{WebSpeechAPI → WebSpeech}/SpeechSynthesis.res +8 -8
- package/src/WebSpeech/SpeechSynthesisUtterance.res +8 -0
- package/src/{WebSpeechAPI.res → WebSpeech/WebSpeechTypes.res} +4 -5
- package/src/{WebStorageAPI → WebStorage}/Storage.res +8 -10
- package/src/WebStorage/StorageEvent.res +10 -0
- package/src/{WebStorageAPI.res → WebStorage/WebStorageTypes.res} +9 -11
- package/src/{WebVTTAPI → WebVTT}/TextTrack.res +3 -5
- package/src/{WebVTTAPI → WebVTT}/TextTrackCueList.res +2 -3
- package/src/{WebVTTAPI.res → WebVTT/WebVttTypes.res} +5 -5
- package/src/WebWorkers/CacheStorage.res +43 -0
- package/src/{WebWorkersAPI → WebWorkers}/SharedWorker.res +13 -12
- package/src/{WebWorkersAPI/SharedWorkerGlobalScope.res → WebWorkers/SharedWorkerScope.res} +6 -4
- package/src/{WebWorkersAPI.res → WebWorkers/WebWorkersTypes.res} +7 -10
- package/src/{WebWorkersAPI/WorkerGlobalScope.res → WebWorkers/Worker.res} +8 -8
- package/src/CSSFontLoadingAPI/FontFace.res +0 -34
- package/src/CSSFontLoadingAPI/FontFaceSet.res +0 -33
- package/src/CanvasAPI/FillStyle.res +0 -24
- package/src/ClipboardAPI/Clipboard.res +0 -27
- package/src/CredentialManagementAPI/CredentialsContainer.res +0 -29
- package/src/DOMAPI/CSSStyleSheet.res +0 -32
- package/src/DOMAPI/CaretPosition.res +0 -4
- package/src/DOMAPI/Comment.res +0 -9
- package/src/DOMAPI/DOMMatrix.res +0 -169
- package/src/DOMAPI/DOMMatrixReadOnly.res +0 -103
- package/src/DOMAPI/DOMPoint.res +0 -29
- package/src/DOMAPI/DOMRectList.res +0 -4
- package/src/DOMAPI/DOMRectReadOnly.res +0 -17
- package/src/DOMAPI/DocumentTimeline.res +0 -9
- package/src/DOMAPI/HTMLAnchorElement.res +0 -3
- package/src/DOMAPI/HTMLAreaElement.res +0 -3
- package/src/DOMAPI/HTMLAudioElement.res +0 -3
- package/src/DOMAPI/HTMLBRElement.res +0 -3
- package/src/DOMAPI/HTMLBaseElement.res +0 -3
- package/src/DOMAPI/HTMLBodyElement.res +0 -3
- package/src/DOMAPI/HTMLDListElement.res +0 -3
- package/src/DOMAPI/HTMLDataElement.res +0 -3
- package/src/DOMAPI/HTMLDataListElement.res +0 -3
- package/src/DOMAPI/HTMLDivElement.res +0 -3
- package/src/DOMAPI/HTMLEmbedElement.res +0 -6
- package/src/DOMAPI/HTMLFormControlsCollection.res +0 -16
- package/src/DOMAPI/HTMLFrameSetElement.res +0 -3
- package/src/DOMAPI/HTMLHRElement.res +0 -3
- package/src/DOMAPI/HTMLHeadElement.res +0 -3
- package/src/DOMAPI/HTMLHeadingElement.res +0 -3
- package/src/DOMAPI/HTMLHtmlElement.res +0 -3
- package/src/DOMAPI/HTMLIFrameElement.res +0 -6
- package/src/DOMAPI/HTMLImageElement.res +0 -9
- package/src/DOMAPI/HTMLLIElement.res +0 -3
- package/src/DOMAPI/HTMLLabelElement.res +0 -3
- package/src/DOMAPI/HTMLLegendElement.res +0 -3
- package/src/DOMAPI/HTMLLinkElement.res +0 -3
- package/src/DOMAPI/HTMLMapElement.res +0 -3
- package/src/DOMAPI/HTMLMenuElement.res +0 -3
- package/src/DOMAPI/HTMLMetaElement.res +0 -3
- package/src/DOMAPI/HTMLMeterElement.res +0 -3
- package/src/DOMAPI/HTMLModElement.res +0 -3
- package/src/DOMAPI/HTMLOListElement.res +0 -3
- package/src/DOMAPI/HTMLOptGroupElement.res +0 -3
- package/src/DOMAPI/HTMLOptionElement.res +0 -3
- package/src/DOMAPI/HTMLParagraphElement.res +0 -3
- package/src/DOMAPI/HTMLPictureElement.res +0 -3
- package/src/DOMAPI/HTMLPreElement.res +0 -3
- package/src/DOMAPI/HTMLProgressElement.res +0 -3
- package/src/DOMAPI/HTMLQuoteElement.res +0 -3
- package/src/DOMAPI/HTMLSlotElement.res +0 -29
- package/src/DOMAPI/HTMLSourceElement.res +0 -3
- package/src/DOMAPI/HTMLSpanElement.res +0 -3
- package/src/DOMAPI/HTMLStyleElement.res +0 -3
- package/src/DOMAPI/HTMLTableCaptionElement.res +0 -3
- package/src/DOMAPI/HTMLTableCellElement.res +0 -3
- package/src/DOMAPI/HTMLTemplateElement.res +0 -3
- package/src/DOMAPI/HTMLTimeElement.res +0 -3
- package/src/DOMAPI/HTMLTitleElement.res +0 -3
- package/src/DOMAPI/HTMLTrackElement.res +0 -3
- package/src/DOMAPI/HTMLUListElement.res +0 -3
- package/src/DOMAPI/HTMLVideoElement.res +0 -31
- package/src/DOMAPI/MediaQueryList.res +0 -3
- package/src/DOMAPI/Navigator.res +0 -115
- package/src/DOMAPI/NodeFilter.res +0 -4
- package/src/DOMAPI/SVGGraphicsElement.res +0 -17
- package/src/DOMAPI/ScreenOrientation.res +0 -9
- package/src/DOMAPI/ShadowRoot.res +0 -21
- package/src/DOMAPI/StylePropertyMap.res +0 -50
- package/src/DOMAPI/TextTrackList.res +0 -10
- package/src/DOMAPI/VideoFrame.res +0 -111
- package/src/DOMAPI/Window.res +0 -517
- package/src/EncryptedMediaExtensionsAPI/MediaKeySystemAccess.res +0 -13
- package/src/EncryptedMediaExtensionsAPI/MediaKeys.res +0 -27
- package/src/FetchAPI/FormDataEntryValue.res +0 -22
- package/src/FileAPI/FileSystemDirectoryHandle.res +0 -45
- package/src/FileAPI/FileSystemFileHandle.res +0 -23
- package/src/FileAPI/FileSystemHandle.res +0 -7
- package/src/FileAPI/FileSystemWritableFileStream.res +0 -62
- package/src/FileAPI/ReadableStream.res +0 -60
- package/src/FileAPI/WritableStream.res +0 -28
- package/src/FileAndDirectoryEntriesAPI/FileSystemDirectoryEntry.res +0 -42
- package/src/FileAndDirectoryEntriesAPI/FileSystemDirectoryReader.res +0 -11
- package/src/FileAndDirectoryEntriesAPI/FileSystemEntry.res +0 -11
- package/src/GamepadAPI/GamepadHapticActuator.res +0 -17
- package/src/GeolocationAPI/Geolocation.res +0 -29
- package/src/IntersectionObserverAPI/IntersectionObserver.res +0 -35
- package/src/IntersectionObserverAPI/IntersectionObserverRoot.res +0 -22
- package/src/MediaCapabilitiesAPI/MediaCapabilities.res +0 -19
- package/src/MediaCaptureAndStreamsAPI/MediaDeviceInfo.res +0 -7
- package/src/MediaCaptureAndStreamsAPI/MediaDevices.res +0 -34
- package/src/MediaCaptureAndStreamsAPI/MediaStream.res +0 -63
- package/src/MediaCaptureAndStreamsAPI/MediaStreamTrack.res +0 -42
- package/src/MediaSessionAPI/MediaMetadata.res +0 -7
- package/src/MediaSessionAPI/MediaSession.res +0 -17
- package/src/MutationObserverAPI/MutationObserver.res +0 -27
- package/src/NotificationAPI/Notification.res +0 -29
- package/src/PerformanceAPI/Performance.res +0 -90
- package/src/PerformanceAPI/PerformanceMark.res +0 -15
- package/src/PermissionsAPI/Permissions.res +0 -7
- package/src/Prelude/DOMException.res +0 -7
- package/src/Prelude.res +0 -37
- package/src/PushAPI/ApplicationServerKey.res +0 -4
- package/src/PushAPI/PushEvent.res +0 -3
- package/src/PushAPI/PushManager.res +0 -25
- package/src/RemotePlaybackAPI/RemotePlayback.res +0 -23
- package/src/ResizeObserverAPI/ResizeObserver.res +0 -27
- package/src/ScreenWakeLockAPI/WakeLock.res +0 -7
- package/src/ScreenWakeLockAPI/WakeLockSentinel.res +0 -9
- package/src/ServiceWorkerAPI/Cache.res +0 -100
- package/src/ServiceWorkerAPI/ServiceWorker.res +0 -21
- package/src/ServiceWorkerAPI/ServiceWorkerContainer.res +0 -35
- package/src/ServiceWorkerAPI/ServiceWorkerGlobalScope.res +0 -10
- package/src/UIEventsAPI/CompositionEvent.res +0 -10
- package/src/UIEventsAPI/FocusEvent.res +0 -9
- package/src/UIEventsAPI/InputEvent.res +0 -16
- package/src/UIEventsAPI/KeyboardEvent.res +0 -16
- package/src/UIEventsAPI/PointerEvent.res +0 -21
- package/src/UIEventsAPI/TouchEvent.res +0 -9
- package/src/UIEventsAPI/UIEvent.res +0 -19
- package/src/UIEventsAPI/WheelEvent.res +0 -9
- package/src/WebAudioAPI/AnalyserNode.res +0 -34
- package/src/WebAudioAPI/AudioContext.res +0 -56
- package/src/WebAudioAPI/AudioDestinationNode.res +0 -3
- package/src/WebAudioAPI/AudioProcessingEvent.res +0 -10
- package/src/WebAudioAPI/AudioWorkletNode.res +0 -13
- package/src/WebAudioAPI/ChannelMergerNode.res +0 -10
- package/src/WebAudioAPI/ChannelSplitterNode.res +0 -12
- package/src/WebAudioAPI/ConstantSourceNode.res +0 -12
- package/src/WebAudioAPI/ConvolverNode.res +0 -10
- package/src/WebAudioAPI/DelayNode.res +0 -9
- package/src/WebAudioAPI/DynamicsCompressorNode.res +0 -12
- package/src/WebAudioAPI/GainNode.res +0 -9
- package/src/WebAudioAPI/MediaElementAudioSourceNode.res +0 -12
- package/src/WebAudioAPI/MediaStreamAudioDestinationNode.res +0 -12
- package/src/WebAudioAPI/MediaStreamAudioSourceNode.res +0 -12
- package/src/WebAudioAPI/OfflineAudioCompletionEvent.res +0 -12
- package/src/WebAudioAPI/OfflineAudioContext.res +0 -34
- package/src/WebAudioAPI/OscillatorNode.res +0 -16
- package/src/WebAudioAPI/PannerNode.res +0 -9
- package/src/WebAudioAPI/PeriodicWave.res +0 -8
- package/src/WebAudioAPI/StereoPannerNode.res +0 -10
- package/src/WebAudioAPI/WaveShaperNode.res +0 -10
- package/src/WebCryptoAPI/SubtleCrypto.res +0 -173
- package/src/WebLocksAPI/LockManager.res +0 -25
- package/src/WebSocketsAPI/CloseEvent.res +0 -9
- package/src/WebSocketsAPI/WebSocket.res +0 -51
- package/src/WebSpeechAPI/SpeechSynthesisUtterance.res +0 -9
- package/src/WebStorageAPI/StorageEvent.res +0 -9
- package/src/WebWorkersAPI/CacheStorage.res +0 -46
|
@@ -1,32 +1,17 @@
|
|
|
1
|
-
open DOMAPI
|
|
2
|
-
open HistoryAPI
|
|
3
|
-
open VisualViewportAPI
|
|
4
|
-
open WebSpeechAPI
|
|
5
|
-
open IndexedDBAPI
|
|
6
|
-
open WebCryptoAPI
|
|
7
|
-
open PerformanceAPI
|
|
8
|
-
open WebWorkersAPI
|
|
9
|
-
open WebStorageAPI
|
|
10
|
-
open CanvasAPI
|
|
11
|
-
open FileAPI
|
|
12
|
-
open ChannelMessagingAPI
|
|
13
|
-
open FetchAPI
|
|
14
|
-
open EventAPI
|
|
15
|
-
|
|
16
1
|
/**
|
|
17
2
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/window)
|
|
18
3
|
*/
|
|
19
|
-
external window: window = "window"
|
|
4
|
+
external window: DomTypes.window = "window"
|
|
20
5
|
|
|
21
6
|
/**
|
|
22
7
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/self)
|
|
23
8
|
*/
|
|
24
|
-
external self: window = "self"
|
|
9
|
+
external self: DomTypes.window = "self"
|
|
25
10
|
|
|
26
11
|
/**
|
|
27
12
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/document)
|
|
28
13
|
*/
|
|
29
|
-
external document: document = "document"
|
|
14
|
+
external document: DomTypes.document = "document"
|
|
30
15
|
|
|
31
16
|
/**
|
|
32
17
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/name)
|
|
@@ -36,54 +21,54 @@ external name: string = "name"
|
|
|
36
21
|
/**
|
|
37
22
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/location)
|
|
38
23
|
*/
|
|
39
|
-
external location: location = "location"
|
|
24
|
+
external location: DomTypes.location = "location"
|
|
40
25
|
|
|
41
26
|
/**
|
|
42
27
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/history)
|
|
43
28
|
*/
|
|
44
|
-
external history: history = "history"
|
|
29
|
+
external history: HistoryTypes.history = "history"
|
|
45
30
|
|
|
46
31
|
/**
|
|
47
32
|
Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element.
|
|
48
33
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/customElements)
|
|
49
34
|
*/
|
|
50
|
-
external customElements: customElementRegistry = "customElements"
|
|
35
|
+
external customElements: DomTypes.customElementRegistry = "customElements"
|
|
51
36
|
|
|
52
37
|
/**
|
|
53
38
|
Returns true if the location bar is visible; otherwise, returns false.
|
|
54
39
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/locationbar)
|
|
55
40
|
*/
|
|
56
|
-
external locationbar: barProp = "locationbar"
|
|
41
|
+
external locationbar: DomTypes.barProp = "locationbar"
|
|
57
42
|
|
|
58
43
|
/**
|
|
59
44
|
Returns true if the menu bar is visible; otherwise, returns false.
|
|
60
45
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/menubar)
|
|
61
46
|
*/
|
|
62
|
-
external menubar: barProp = "menubar"
|
|
47
|
+
external menubar: DomTypes.barProp = "menubar"
|
|
63
48
|
|
|
64
49
|
/**
|
|
65
50
|
Returns true if the personal bar is visible; otherwise, returns false.
|
|
66
51
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/personalbar)
|
|
67
52
|
*/
|
|
68
|
-
external personalbar: barProp = "personalbar"
|
|
53
|
+
external personalbar: DomTypes.barProp = "personalbar"
|
|
69
54
|
|
|
70
55
|
/**
|
|
71
56
|
Returns true if the scrollbars are visible; otherwise, returns false.
|
|
72
57
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/scrollbars)
|
|
73
58
|
*/
|
|
74
|
-
external scrollbars: barProp = "scrollbars"
|
|
59
|
+
external scrollbars: DomTypes.barProp = "scrollbars"
|
|
75
60
|
|
|
76
61
|
/**
|
|
77
62
|
Returns true if the status bar is visible; otherwise, returns false.
|
|
78
63
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/statusbar)
|
|
79
64
|
*/
|
|
80
|
-
external statusbar: barProp = "statusbar"
|
|
65
|
+
external statusbar: DomTypes.barProp = "statusbar"
|
|
81
66
|
|
|
82
67
|
/**
|
|
83
68
|
Returns true if the toolbar is visible; otherwise, returns false.
|
|
84
69
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/toolbar)
|
|
85
70
|
*/
|
|
86
|
-
external toolbar: barProp = "toolbar"
|
|
71
|
+
external toolbar: DomTypes.barProp = "toolbar"
|
|
87
72
|
|
|
88
73
|
/**
|
|
89
74
|
Returns true if the window has been closed, false otherwise.
|
|
@@ -94,7 +79,7 @@ external closed: bool = "closed"
|
|
|
94
79
|
/**
|
|
95
80
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/frames)
|
|
96
81
|
*/
|
|
97
|
-
external frames: window = "frames"
|
|
82
|
+
external frames: DomTypes.window = "frames"
|
|
98
83
|
|
|
99
84
|
/**
|
|
100
85
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/length)
|
|
@@ -104,7 +89,7 @@ external length: int = "length"
|
|
|
104
89
|
/**
|
|
105
90
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/top)
|
|
106
91
|
*/
|
|
107
|
-
external top: window = "top"
|
|
92
|
+
external top: DomTypes.window = "top"
|
|
108
93
|
|
|
109
94
|
/**
|
|
110
95
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/opener)
|
|
@@ -117,27 +102,27 @@ Refers to either the parent WindowProxy, or itself.
|
|
|
117
102
|
It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent.
|
|
118
103
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/parent)
|
|
119
104
|
*/
|
|
120
|
-
external parent: window = "parent"
|
|
105
|
+
external parent: DomTypes.window = "parent"
|
|
121
106
|
|
|
122
107
|
/**
|
|
123
108
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/frameElement)
|
|
124
109
|
*/
|
|
125
|
-
external frameElement: element = "frameElement"
|
|
110
|
+
external frameElement: DomTypes.element = "frameElement"
|
|
126
111
|
|
|
127
112
|
/**
|
|
128
113
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/navigator)
|
|
129
114
|
*/
|
|
130
|
-
external navigator: navigator = "navigator"
|
|
115
|
+
external navigator: DomTypes.navigator = "navigator"
|
|
131
116
|
|
|
132
117
|
/**
|
|
133
118
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/screen)
|
|
134
119
|
*/
|
|
135
|
-
external screen: screen = "screen"
|
|
120
|
+
external screen: DomTypes.screen = "screen"
|
|
136
121
|
|
|
137
122
|
/**
|
|
138
123
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/visualViewport)
|
|
139
124
|
*/
|
|
140
|
-
external visualViewport:
|
|
125
|
+
external visualViewport: VisualViewport.t = "visualViewport"
|
|
141
126
|
|
|
142
127
|
/**
|
|
143
128
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/innerWidth)
|
|
@@ -197,7 +182,7 @@ external devicePixelRatio: float = "devicePixelRatio"
|
|
|
197
182
|
/**
|
|
198
183
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/speechSynthesis)
|
|
199
184
|
*/
|
|
200
|
-
external speechSynthesis: speechSynthesis = "speechSynthesis"
|
|
185
|
+
external speechSynthesis: WebSpeechTypes.speechSynthesis = "speechSynthesis"
|
|
201
186
|
|
|
202
187
|
/**
|
|
203
188
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/origin)
|
|
@@ -217,32 +202,32 @@ external crossOriginIsolated: bool = "crossOriginIsolated"
|
|
|
217
202
|
/**
|
|
218
203
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/indexedDB)
|
|
219
204
|
*/
|
|
220
|
-
external indexedDB: idbFactory = "indexedDB"
|
|
205
|
+
external indexedDB: IndexedDbTypes.idbFactory = "indexedDB"
|
|
221
206
|
|
|
222
207
|
/**
|
|
223
208
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/crypto)
|
|
224
209
|
*/
|
|
225
|
-
external crypto: crypto = "crypto"
|
|
210
|
+
external crypto: WebCryptoTypes.crypto = "crypto"
|
|
226
211
|
|
|
227
212
|
/**
|
|
228
213
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/performance)
|
|
229
214
|
*/
|
|
230
|
-
external performance: performance = "performance"
|
|
215
|
+
external performance: PerformanceTypes.performance = "performance"
|
|
231
216
|
|
|
232
217
|
/**
|
|
233
218
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/caches)
|
|
234
219
|
*/
|
|
235
|
-
external caches: cacheStorage = "caches"
|
|
220
|
+
external caches: WebWorkersTypes.cacheStorage = "caches"
|
|
236
221
|
|
|
237
222
|
/**
|
|
238
223
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/sessionStorage)
|
|
239
224
|
*/
|
|
240
|
-
external sessionStorage: storage = "sessionStorage"
|
|
225
|
+
external sessionStorage: WebStorageTypes.storage = "sessionStorage"
|
|
241
226
|
|
|
242
227
|
/**
|
|
243
228
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/localStorage)
|
|
244
229
|
*/
|
|
245
|
-
external localStorage: storage = "localStorage"
|
|
230
|
+
external localStorage: WebStorageTypes.storage = "localStorage"
|
|
246
231
|
|
|
247
232
|
/**
|
|
248
233
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/reportError)
|
|
@@ -264,14 +249,14 @@ Executes a function after a delay given in milliseconds expires.
|
|
|
264
249
|
|
|
265
250
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/setTimeout)
|
|
266
251
|
*/
|
|
267
|
-
external setTimeout: (~handler: unit => unit, ~timeout: int=?) => timeoutId = "setTimeout"
|
|
252
|
+
external setTimeout: (~handler: unit => unit, ~timeout: int=?) => DomTypes.timeoutId = "setTimeout"
|
|
268
253
|
|
|
269
254
|
/**
|
|
270
255
|
Cancels the execution of a timeout created with setTimeout.
|
|
271
256
|
|
|
272
257
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/clearTimeout)
|
|
273
258
|
*/
|
|
274
|
-
external clearTimeout: timeoutId => unit = "clearTimeout"
|
|
259
|
+
external clearTimeout: DomTypes.timeoutId => unit = "clearTimeout"
|
|
275
260
|
|
|
276
261
|
/**
|
|
277
262
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/setInterval)
|
|
@@ -291,225 +276,18 @@ external clearInterval: int => unit = "clearInterval"
|
|
|
291
276
|
/**
|
|
292
277
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask)
|
|
293
278
|
*/
|
|
294
|
-
external queueMicrotask:
|
|
295
|
-
|
|
296
|
-
/**
|
|
297
|
-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap)
|
|
298
|
-
*/
|
|
299
|
-
external createImageBitmap: (
|
|
300
|
-
~image: htmlImageElement,
|
|
301
|
-
~options: imageBitmapOptions=?,
|
|
302
|
-
) => promise<imageBitmap> = "createImageBitmap"
|
|
303
|
-
|
|
304
|
-
/**
|
|
305
|
-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap)
|
|
306
|
-
*/
|
|
307
|
-
external createImageBitmap2: (
|
|
308
|
-
~image: svgImageElement,
|
|
309
|
-
~options: imageBitmapOptions=?,
|
|
310
|
-
) => promise<imageBitmap> = "createImageBitmap"
|
|
311
|
-
|
|
312
|
-
/**
|
|
313
|
-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap)
|
|
314
|
-
*/
|
|
315
|
-
external createImageBitmap3: (
|
|
316
|
-
~image: htmlVideoElement,
|
|
317
|
-
~options: imageBitmapOptions=?,
|
|
318
|
-
) => promise<imageBitmap> = "createImageBitmap"
|
|
319
|
-
|
|
320
|
-
/**
|
|
321
|
-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap)
|
|
322
|
-
*/
|
|
323
|
-
external createImageBitmap4: (
|
|
324
|
-
~image: htmlCanvasElement,
|
|
325
|
-
~options: imageBitmapOptions=?,
|
|
326
|
-
) => promise<imageBitmap> = "createImageBitmap"
|
|
327
|
-
|
|
328
|
-
/**
|
|
329
|
-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap)
|
|
330
|
-
*/
|
|
331
|
-
external createImageBitmap5: (
|
|
332
|
-
~image: imageBitmap,
|
|
333
|
-
~options: imageBitmapOptions=?,
|
|
334
|
-
) => promise<imageBitmap> = "createImageBitmap"
|
|
335
|
-
|
|
336
|
-
/**
|
|
337
|
-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap)
|
|
338
|
-
*/
|
|
339
|
-
external createImageBitmap6: (
|
|
340
|
-
~image: offscreenCanvas,
|
|
341
|
-
~options: imageBitmapOptions=?,
|
|
342
|
-
) => promise<imageBitmap> = "createImageBitmap"
|
|
343
|
-
|
|
344
|
-
/**
|
|
345
|
-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap)
|
|
346
|
-
*/
|
|
347
|
-
external createImageBitmap7: (
|
|
348
|
-
~image: videoFrame,
|
|
349
|
-
~options: imageBitmapOptions=?,
|
|
350
|
-
) => promise<imageBitmap> = "createImageBitmap"
|
|
351
|
-
|
|
352
|
-
/**
|
|
353
|
-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap)
|
|
354
|
-
*/
|
|
355
|
-
external createImageBitmap8: (
|
|
356
|
-
~image: blob,
|
|
357
|
-
~options: imageBitmapOptions=?,
|
|
358
|
-
) => promise<imageBitmap> = "createImageBitmap"
|
|
359
|
-
|
|
360
|
-
/**
|
|
361
|
-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap)
|
|
362
|
-
*/
|
|
363
|
-
external createImageBitmap9: (
|
|
364
|
-
~image: imageData,
|
|
365
|
-
~options: imageBitmapOptions=?,
|
|
366
|
-
) => promise<imageBitmap> = "createImageBitmap"
|
|
367
|
-
|
|
368
|
-
/**
|
|
369
|
-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap)
|
|
370
|
-
*/
|
|
371
|
-
external createImageBitmap10: (
|
|
372
|
-
~image: htmlImageElement,
|
|
373
|
-
~sx: int,
|
|
374
|
-
~sy: int,
|
|
375
|
-
~sw: int,
|
|
376
|
-
~sh: int,
|
|
377
|
-
~options: imageBitmapOptions=?,
|
|
378
|
-
) => promise<imageBitmap> = "createImageBitmap"
|
|
379
|
-
|
|
380
|
-
/**
|
|
381
|
-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap)
|
|
382
|
-
*/
|
|
383
|
-
external createImageBitmap11: (
|
|
384
|
-
~image: svgImageElement,
|
|
385
|
-
~sx: int,
|
|
386
|
-
~sy: int,
|
|
387
|
-
~sw: int,
|
|
388
|
-
~sh: int,
|
|
389
|
-
~options: imageBitmapOptions=?,
|
|
390
|
-
) => promise<imageBitmap> = "createImageBitmap"
|
|
391
|
-
|
|
392
|
-
/**
|
|
393
|
-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap)
|
|
394
|
-
*/
|
|
395
|
-
external createImageBitmap12: (
|
|
396
|
-
~image: htmlVideoElement,
|
|
397
|
-
~sx: int,
|
|
398
|
-
~sy: int,
|
|
399
|
-
~sw: int,
|
|
400
|
-
~sh: int,
|
|
401
|
-
~options: imageBitmapOptions=?,
|
|
402
|
-
) => promise<imageBitmap> = "createImageBitmap"
|
|
403
|
-
|
|
404
|
-
/**
|
|
405
|
-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap)
|
|
406
|
-
*/
|
|
407
|
-
external createImageBitmap13: (
|
|
408
|
-
~image: htmlCanvasElement,
|
|
409
|
-
~sx: int,
|
|
410
|
-
~sy: int,
|
|
411
|
-
~sw: int,
|
|
412
|
-
~sh: int,
|
|
413
|
-
~options: imageBitmapOptions=?,
|
|
414
|
-
) => promise<imageBitmap> = "createImageBitmap"
|
|
415
|
-
|
|
416
|
-
/**
|
|
417
|
-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap)
|
|
418
|
-
*/
|
|
419
|
-
external createImageBitmap14: (
|
|
420
|
-
~image: imageBitmap,
|
|
421
|
-
~sx: int,
|
|
422
|
-
~sy: int,
|
|
423
|
-
~sw: int,
|
|
424
|
-
~sh: int,
|
|
425
|
-
~options: imageBitmapOptions=?,
|
|
426
|
-
) => promise<imageBitmap> = "createImageBitmap"
|
|
427
|
-
|
|
428
|
-
/**
|
|
429
|
-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap)
|
|
430
|
-
*/
|
|
431
|
-
external createImageBitmap15: (
|
|
432
|
-
~image: offscreenCanvas,
|
|
433
|
-
~sx: int,
|
|
434
|
-
~sy: int,
|
|
435
|
-
~sw: int,
|
|
436
|
-
~sh: int,
|
|
437
|
-
~options: imageBitmapOptions=?,
|
|
438
|
-
) => promise<imageBitmap> = "createImageBitmap"
|
|
439
|
-
|
|
440
|
-
/**
|
|
441
|
-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap)
|
|
442
|
-
*/
|
|
443
|
-
external createImageBitmap16: (
|
|
444
|
-
~image: videoFrame,
|
|
445
|
-
~sx: int,
|
|
446
|
-
~sy: int,
|
|
447
|
-
~sw: int,
|
|
448
|
-
~sh: int,
|
|
449
|
-
~options: imageBitmapOptions=?,
|
|
450
|
-
) => promise<imageBitmap> = "createImageBitmap"
|
|
451
|
-
|
|
452
|
-
/**
|
|
453
|
-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap)
|
|
454
|
-
*/
|
|
455
|
-
external createImageBitmap17: (
|
|
456
|
-
~image: blob,
|
|
457
|
-
~sx: int,
|
|
458
|
-
~sy: int,
|
|
459
|
-
~sw: int,
|
|
460
|
-
~sh: int,
|
|
461
|
-
~options: imageBitmapOptions=?,
|
|
462
|
-
) => promise<imageBitmap> = "createImageBitmap"
|
|
463
|
-
|
|
464
|
-
/**
|
|
465
|
-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap)
|
|
466
|
-
*/
|
|
467
|
-
external createImageBitmap18: (
|
|
468
|
-
~image: imageData,
|
|
469
|
-
~sx: int,
|
|
470
|
-
~sy: int,
|
|
471
|
-
~sw: int,
|
|
472
|
-
~sh: int,
|
|
473
|
-
~options: imageBitmapOptions=?,
|
|
474
|
-
) => promise<imageBitmap> = "createImageBitmap"
|
|
279
|
+
external queueMicrotask: unit => unit => unit = "queueMicrotask"
|
|
475
280
|
|
|
476
281
|
/**
|
|
477
282
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/structuredClone)
|
|
478
283
|
*/
|
|
479
|
-
external structuredClone: ('t, ~options: structuredSerializeOptions=?) => 't =
|
|
480
|
-
|
|
481
|
-
/**
|
|
482
|
-
`fetch(string, init)`
|
|
483
|
-
|
|
484
|
-
Starts the process of fetching a resource from the network,
|
|
485
|
-
returning a promise that is fulfilled once the response is available.
|
|
486
|
-
|
|
487
|
-
```res
|
|
488
|
-
let response = await fetch("https://rescript-lang.org")
|
|
489
|
-
```
|
|
490
|
-
|
|
491
|
-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/fetch)
|
|
492
|
-
*/
|
|
493
|
-
external fetch: (string, ~init: requestInit=?) => promise<response> = "fetch"
|
|
494
|
-
|
|
495
|
-
/**
|
|
496
|
-
`fetchWithRequest(request, init)`
|
|
497
|
-
|
|
498
|
-
Starts the process of fetching a resource from the network,
|
|
499
|
-
returning a promise that is fulfilled once the response is available.
|
|
500
|
-
|
|
501
|
-
```res
|
|
502
|
-
let response = await fetch(myRequest)
|
|
503
|
-
```
|
|
504
|
-
|
|
505
|
-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/fetch)
|
|
506
|
-
*/
|
|
507
|
-
external fetchWithRequest: (request, ~init: requestInit=?) => promise<response> = "fetch"
|
|
284
|
+
external structuredClone: ('t, ~options: ChannelMessagingTypes.structuredSerializeOptions=?) => 't =
|
|
285
|
+
"structuredClone"
|
|
508
286
|
|
|
509
287
|
/**
|
|
510
288
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame)
|
|
511
289
|
*/
|
|
512
|
-
external requestAnimationFrame:
|
|
290
|
+
external requestAnimationFrame: (float => unit) => int = "requestAnimationFrame"
|
|
513
291
|
|
|
514
292
|
/**
|
|
515
293
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame)
|
|
@@ -533,9 +311,9 @@ The event listener is appended to target's event listener list and is not append
|
|
|
533
311
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)
|
|
534
312
|
*/
|
|
535
313
|
external addEventListener: (
|
|
536
|
-
eventType,
|
|
537
|
-
eventListener<'event>,
|
|
538
|
-
~options: addEventListenerOptions=?,
|
|
314
|
+
EventTypes.eventType,
|
|
315
|
+
EventTypes.eventListener<'event>,
|
|
316
|
+
~options: EventTypes.addEventListenerOptions=?,
|
|
539
317
|
) => unit = "addEventListener"
|
|
540
318
|
|
|
541
319
|
/**
|
|
@@ -555,8 +333,8 @@ The event listener is appended to target's event listener list and is not append
|
|
|
555
333
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)
|
|
556
334
|
*/
|
|
557
335
|
external addEventListenerWithCapture: (
|
|
558
|
-
eventType,
|
|
559
|
-
eventListener<'event>,
|
|
336
|
+
EventTypes.eventType,
|
|
337
|
+
EventTypes.eventListener<'event>,
|
|
560
338
|
@as(json`true`) _,
|
|
561
339
|
) => unit = "addEventListener"
|
|
562
340
|
|
|
@@ -565,9 +343,9 @@ Removes the event listener in target's event listener list with the same type, c
|
|
|
565
343
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
|
|
566
344
|
*/
|
|
567
345
|
external removeEventListener: (
|
|
568
|
-
eventType,
|
|
569
|
-
eventListener<'event>,
|
|
570
|
-
~options: eventListenerOptions=?,
|
|
346
|
+
EventTypes.eventType,
|
|
347
|
+
EventTypes.eventListener<'event>,
|
|
348
|
+
~options: EventTypes.eventListenerOptions=?,
|
|
571
349
|
) => unit = "removeEventListener"
|
|
572
350
|
|
|
573
351
|
/**
|
|
@@ -575,8 +353,8 @@ Removes the event listener in target's event listener list with the same type, c
|
|
|
575
353
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
|
|
576
354
|
*/
|
|
577
355
|
external removeEventListenerUseCapture: (
|
|
578
|
-
eventType,
|
|
579
|
-
eventListener<'event>,
|
|
356
|
+
EventTypes.eventType,
|
|
357
|
+
EventTypes.eventListener<'event>,
|
|
580
358
|
@as(json`true`) _,
|
|
581
359
|
) => unit = "removeEventListener"
|
|
582
360
|
|
|
@@ -584,7 +362,7 @@ external removeEventListenerUseCapture: (
|
|
|
584
362
|
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.
|
|
585
363
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
|
|
586
364
|
*/
|
|
587
|
-
external dispatchEvent: event => bool = "dispatchEvent"
|
|
365
|
+
external dispatchEvent: EventTypes.event => bool = "dispatchEvent"
|
|
588
366
|
|
|
589
367
|
/**
|
|
590
368
|
Closes the window.
|
|
@@ -607,17 +385,12 @@ external focus: unit => unit = "focus"
|
|
|
607
385
|
/**
|
|
608
386
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/open)
|
|
609
387
|
*/
|
|
610
|
-
external open_: (~url: string=?, ~target: string=?, ~features: string=?) => window = "open"
|
|
388
|
+
external open_: (~url: string=?, ~target: string=?, ~features: string=?) => DomTypes.window = "open"
|
|
611
389
|
|
|
612
390
|
/**
|
|
613
391
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/alert)
|
|
614
392
|
*/
|
|
615
|
-
external alert:
|
|
616
|
-
|
|
617
|
-
/**
|
|
618
|
-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/alert)
|
|
619
|
-
*/
|
|
620
|
-
external alert2: string => unit = "alert"
|
|
393
|
+
external alert: (~message: string=?) => unit = "alert"
|
|
621
394
|
|
|
622
395
|
/**
|
|
623
396
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/confirm)
|
|
@@ -635,7 +408,7 @@ external prompt: (~message: string=?, ~default: string=?) => string = "prompt"
|
|
|
635
408
|
external print: unit => unit = "print"
|
|
636
409
|
|
|
637
410
|
/**
|
|
638
|
-
Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as
|
|
411
|
+
Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as WebApiFile Blob, FileList, and ArrayBuffer objects.
|
|
639
412
|
|
|
640
413
|
Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side.
|
|
641
414
|
|
|
@@ -653,7 +426,7 @@ external postMessage: (
|
|
|
653
426
|
) => unit = "postMessage"
|
|
654
427
|
|
|
655
428
|
/**
|
|
656
|
-
Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as
|
|
429
|
+
Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as WebApiFile Blob, FileList, and ArrayBuffer objects.
|
|
657
430
|
|
|
658
431
|
Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side.
|
|
659
432
|
|
|
@@ -664,13 +437,15 @@ If the origin of the target window doesn't match the given target origin, the me
|
|
|
664
437
|
Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned.
|
|
665
438
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/postMessage)
|
|
666
439
|
*/
|
|
667
|
-
external
|
|
668
|
-
|
|
440
|
+
external postMessageWithOptions: (
|
|
441
|
+
~message: JSON.t,
|
|
442
|
+
~options: DomTypes.windowPostMessageOptions=?,
|
|
443
|
+
) => unit = "postMessage"
|
|
669
444
|
|
|
670
445
|
/**
|
|
671
446
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/matchMedia)
|
|
672
447
|
*/
|
|
673
|
-
external matchMedia: string => mediaQueryList = "matchMedia"
|
|
448
|
+
external matchMedia: string => DomTypes.mediaQueryList = "matchMedia"
|
|
674
449
|
|
|
675
450
|
/**
|
|
676
451
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/moveTo)
|
|
@@ -695,7 +470,7 @@ external resizeBy: (~x: int, ~y: int) => unit = "resizeBy"
|
|
|
695
470
|
/**
|
|
696
471
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/scroll)
|
|
697
472
|
*/
|
|
698
|
-
external scroll: (~options: scrollToOptions=?) => unit = "scroll"
|
|
473
|
+
external scroll: (~options: DomTypes.scrollToOptions=?) => unit = "scroll"
|
|
699
474
|
|
|
700
475
|
/**
|
|
701
476
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/scroll)
|
|
@@ -705,7 +480,7 @@ external scroll2: (~x: float, ~y: float) => unit = "scroll"
|
|
|
705
480
|
/**
|
|
706
481
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/scrollTo)
|
|
707
482
|
*/
|
|
708
|
-
external scrollTo: (~options: scrollToOptions=?) => unit = "scrollTo"
|
|
483
|
+
external scrollTo: (~options: DomTypes.scrollToOptions=?) => unit = "scrollTo"
|
|
709
484
|
|
|
710
485
|
/**
|
|
711
486
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/scrollTo)
|
|
@@ -715,7 +490,7 @@ external scrollTo2: (~x: float, ~y: float) => unit = "scrollTo"
|
|
|
715
490
|
/**
|
|
716
491
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/scrollBy)
|
|
717
492
|
*/
|
|
718
|
-
external scrollBy: (~options: scrollToOptions=?) => unit = "scrollBy"
|
|
493
|
+
external scrollBy: (~options: DomTypes.scrollToOptions=?) => unit = "scrollBy"
|
|
719
494
|
|
|
720
495
|
/**
|
|
721
496
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/scrollBy)
|
|
@@ -725,15 +500,17 @@ external scrollBy2: (~x: float, ~y: float) => unit = "scrollBy"
|
|
|
725
500
|
/**
|
|
726
501
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle)
|
|
727
502
|
*/
|
|
728
|
-
external getComputedStyle: (
|
|
729
|
-
|
|
503
|
+
external getComputedStyle: (
|
|
504
|
+
~elt: DomTypes.element,
|
|
505
|
+
~pseudoElt: string=?,
|
|
506
|
+
) => DomTypes.cssStyleDeclaration = "getComputedStyle"
|
|
730
507
|
|
|
731
508
|
/**
|
|
732
509
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/requestIdleCallback)
|
|
733
510
|
*/
|
|
734
511
|
external requestIdleCallback: (
|
|
735
|
-
~callback:
|
|
736
|
-
~options: idleRequestOptions=?,
|
|
512
|
+
~callback: DomTypes.idleDeadline => unit,
|
|
513
|
+
~options: DomTypes.idleRequestOptions=?,
|
|
737
514
|
) => int = "requestIdleCallback"
|
|
738
515
|
|
|
739
516
|
/**
|
|
@@ -744,4 +521,4 @@ external cancelIdleCallback: int => unit = "cancelIdleCallback"
|
|
|
744
521
|
/**
|
|
745
522
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/getSelection)
|
|
746
523
|
*/
|
|
747
|
-
external getSelection: unit => null<selection> = "getSelection"
|
|
524
|
+
external getSelection: unit => null<DomTypes.selection> = "getSelection"
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
open DOMAPI
|
|
2
|
-
open WebVTTAPI
|
|
3
|
-
open EncryptedMediaExtensionsAPI
|
|
4
|
-
|
|
5
1
|
module Impl = (
|
|
6
2
|
T: {
|
|
7
3
|
type t
|
|
8
4
|
},
|
|
9
5
|
) => {
|
|
10
|
-
include HTMLElement.Impl({type t = htmlMediaElement})
|
|
6
|
+
include HTMLElement.Impl({type t = DomTypes.htmlMediaElement})
|
|
11
7
|
|
|
12
|
-
external asHTMLMediaElement: T.t => htmlMediaElement = "%identity"
|
|
8
|
+
external asHTMLMediaElement: T.t => DomTypes.htmlMediaElement = "%identity"
|
|
13
9
|
|
|
14
10
|
/**
|
|
15
11
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/addTextTrack)
|
|
@@ -17,17 +13,17 @@ module Impl = (
|
|
|
17
13
|
@send
|
|
18
14
|
external addTextTrack: (
|
|
19
15
|
T.t,
|
|
20
|
-
~kind: textTrackKind,
|
|
16
|
+
~kind: WebVttTypes.textTrackKind,
|
|
21
17
|
~label: string=?,
|
|
22
18
|
~language: string=?,
|
|
23
|
-
) => textTrack = "addTextTrack"
|
|
19
|
+
) => WebVttTypes.textTrack = "addTextTrack"
|
|
24
20
|
|
|
25
21
|
/**
|
|
26
22
|
Returns a string that specifies whether the client can play a given media resource type.
|
|
27
23
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canPlayType)
|
|
28
24
|
*/
|
|
29
25
|
@send
|
|
30
|
-
external canPlayType: (T.t, string) => canPlayTypeResult = "canPlayType"
|
|
26
|
+
external canPlayType: (T.t, string) => DomTypes.canPlayTypeResult = "canPlayType"
|
|
31
27
|
|
|
32
28
|
/**
|
|
33
29
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/fastSeek)
|
|
@@ -56,12 +52,6 @@ Loads and starts playback of a media resource.
|
|
|
56
52
|
@send
|
|
57
53
|
external play: T.t => promise<unit> = "play"
|
|
58
54
|
|
|
59
|
-
/**
|
|
60
|
-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/setMediaKeys)
|
|
61
|
-
*/
|
|
62
|
-
@send
|
|
63
|
-
external setMediaKeys: (T.t, mediaKeys) => promise<unit> = "setMediaKeys"
|
|
64
|
-
|
|
65
55
|
/**
|
|
66
56
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/setSinkId)
|
|
67
57
|
*/
|
|
@@ -69,4 +59,4 @@ Loads and starts playback of a media resource.
|
|
|
69
59
|
external setSinkId: (T.t, string) => promise<unit> = "setSinkId"
|
|
70
60
|
}
|
|
71
61
|
|
|
72
|
-
include Impl({type t = htmlMediaElement})
|
|
62
|
+
include Impl({type t = DomTypes.htmlMediaElement})
|