diff --git a/src/CSSFontLoadingAPI/FontFace.res b/src/CSSFontLoadingAPI/FontFace.res index b8ed62b9..817274ea 100644 --- a/src/CSSFontLoadingAPI/FontFace.res +++ b/src/CSSFontLoadingAPI/FontFace.res @@ -1,4 +1,4 @@ -open CSSFontLoadingAPI +open CSSFontLoadingTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFace) diff --git a/src/CSSFontLoadingAPI/FontFaceSet.res b/src/CSSFontLoadingAPI/FontFaceSet.res index 9d6d1780..35bd623f 100644 --- a/src/CSSFontLoadingAPI/FontFaceSet.res +++ b/src/CSSFontLoadingAPI/FontFaceSet.res @@ -1,4 +1,4 @@ -open CSSFontLoadingAPI +open CSSFontLoadingTypes include EventTarget.Impl({type t = fontFaceSet}) diff --git a/src/CSSFontLoadingAPI.res b/src/CSSFontLoadingTypes.res similarity index 99% rename from src/CSSFontLoadingAPI.res rename to src/CSSFontLoadingTypes.res index 1cda2172..a7613eab 100644 --- a/src/CSSFontLoadingAPI.res +++ b/src/CSSFontLoadingTypes.res @@ -1,6 +1,6 @@ @@warning("-30") -open EventAPI +open EventTypes type fontDisplay = | @as("auto") Auto diff --git a/src/CanvasAPI/CanvasGradient.res b/src/CanvasAPI/CanvasGradient.res index 86347e0a..5aebbd50 100644 --- a/src/CanvasAPI/CanvasGradient.res +++ b/src/CanvasAPI/CanvasGradient.res @@ -1,4 +1,4 @@ -open CanvasAPI +open CanvasTypes /** Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end. diff --git a/src/CanvasAPI/CanvasPattern.res b/src/CanvasAPI/CanvasPattern.res index 9e3f2434..d92d026c 100644 --- a/src/CanvasAPI/CanvasPattern.res +++ b/src/CanvasAPI/CanvasPattern.res @@ -1,5 +1,5 @@ -open DOMAPI -open CanvasAPI +open DOMTypes +open CanvasTypes /** Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation. diff --git a/src/CanvasAPI/FillStyle.res b/src/CanvasAPI/FillStyle.res index cd71c4d7..b1ae1705 100644 --- a/src/CanvasAPI/FillStyle.res +++ b/src/CanvasAPI/FillStyle.res @@ -1,5 +1,5 @@ open Prelude -open CanvasAPI +open CanvasTypes external fromString: string => fillStyle = "%identity" external fromCanvasGradient: canvasGradient => fillStyle = "%identity" diff --git a/src/CanvasAPI/ImageBitmap.res b/src/CanvasAPI/ImageBitmap.res index 61ff7268..7beac75f 100644 --- a/src/CanvasAPI/ImageBitmap.res +++ b/src/CanvasAPI/ImageBitmap.res @@ -1,4 +1,4 @@ -open CanvasAPI +open CanvasTypes /** Releases imageBitmap's underlying bitmap data. diff --git a/src/CanvasAPI/ImageBitmapRenderingContext.res b/src/CanvasAPI/ImageBitmapRenderingContext.res index 9e422d2f..42a9b0b3 100644 --- a/src/CanvasAPI/ImageBitmapRenderingContext.res +++ b/src/CanvasAPI/ImageBitmapRenderingContext.res @@ -1,4 +1,4 @@ -open CanvasAPI +open CanvasTypes /** Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound. diff --git a/src/CanvasAPI/OffscreenCanvas.res b/src/CanvasAPI/OffscreenCanvas.res index 83b68802..1310f35c 100644 --- a/src/CanvasAPI/OffscreenCanvas.res +++ b/src/CanvasAPI/OffscreenCanvas.res @@ -1,5 +1,5 @@ -open CanvasAPI -open FileAPI +open CanvasTypes +open FileTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas) diff --git a/src/CanvasAPI/Path2D.res b/src/CanvasAPI/Path2D.res index 24d4f89d..49282844 100644 --- a/src/CanvasAPI/Path2D.res +++ b/src/CanvasAPI/Path2D.res @@ -1,5 +1,5 @@ -open CanvasAPI -open DOMAPI +open CanvasTypes +open DOMTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Path2D) diff --git a/src/CanvasAPI.res b/src/CanvasTypes.res similarity index 99% rename from src/CanvasAPI.res rename to src/CanvasTypes.res index e1b820e3..435c7515 100644 --- a/src/CanvasAPI.res +++ b/src/CanvasTypes.res @@ -1,7 +1,7 @@ @@warning("-30") open Prelude -open EventAPI +open EventTypes type offscreenRenderingContextId = | @as("2d") V2d diff --git a/src/ChannelMessagingAPI/MessagePort.res b/src/ChannelMessagingAPI/MessagePort.res index c0e3e78f..0c62d851 100644 --- a/src/ChannelMessagingAPI/MessagePort.res +++ b/src/ChannelMessagingAPI/MessagePort.res @@ -1,4 +1,4 @@ -open ChannelMessagingAPI +open ChannelMessagingTypes include EventTarget.Impl({type t = messagePort}) diff --git a/src/ChannelMessagingAPI.res b/src/ChannelMessagingTypes.res similarity index 96% rename from src/ChannelMessagingAPI.res rename to src/ChannelMessagingTypes.res index a960ac74..16a99a2f 100644 --- a/src/ChannelMessagingAPI.res +++ b/src/ChannelMessagingTypes.res @@ -1,6 +1,6 @@ @@warning("-30") -open EventAPI +open EventTypes /** This Channel Messaging API interface represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other. diff --git a/src/ClipboardAPI/Clipboard.res b/src/ClipboardAPI/Clipboard.res index 690ae195..2eafa74a 100644 --- a/src/ClipboardAPI/Clipboard.res +++ b/src/ClipboardAPI/Clipboard.res @@ -1,4 +1,4 @@ -open ClipboardAPI +open ClipboardTypes include EventTarget.Impl({type t = clipboard}) diff --git a/src/ClipboardAPI/ClipboardItem.res b/src/ClipboardAPI/ClipboardItem.res index 82dbc31a..614747fe 100644 --- a/src/ClipboardAPI/ClipboardItem.res +++ b/src/ClipboardAPI/ClipboardItem.res @@ -1,5 +1,5 @@ -open FileAPI -open ClipboardAPI +open FileTypes +open ClipboardTypes open Prelude /** diff --git a/src/ClipboardAPI.res b/src/ClipboardTypes.res similarity index 98% rename from src/ClipboardAPI.res rename to src/ClipboardTypes.res index ab2e5c5f..b7bd2039 100644 --- a/src/ClipboardAPI.res +++ b/src/ClipboardTypes.res @@ -1,6 +1,6 @@ @@warning("-30") -open EventAPI +open EventTypes type presentationStyle = | @as("attachment") Attachment diff --git a/src/CredentialManagementAPI/CredentialsContainer.res b/src/CredentialManagementAPI/CredentialsContainer.res index 32fc0c32..49b290e3 100644 --- a/src/CredentialManagementAPI/CredentialsContainer.res +++ b/src/CredentialManagementAPI/CredentialsContainer.res @@ -1,4 +1,4 @@ -open CredentialManagementAPI +open CredentialManagementTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/get) diff --git a/src/CredentialManagementAPI.res b/src/CredentialManagementTypes.res similarity index 99% rename from src/CredentialManagementAPI.res rename to src/CredentialManagementTypes.res index 865d6b2d..2040c955 100644 --- a/src/CredentialManagementAPI.res +++ b/src/CredentialManagementTypes.res @@ -1,7 +1,7 @@ @@warning("-30") open Prelude -open EventAPI +open EventTypes type authenticatorTransport = | @as("ble") Ble diff --git a/src/DOMAPI/Animation.res b/src/DOMAPI/Animation.res index 598a11a9..51afe616 100644 --- a/src/DOMAPI/Animation.res +++ b/src/DOMAPI/Animation.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Animation) diff --git a/src/DOMAPI/AnimationEffect.res b/src/DOMAPI/AnimationEffect.res index a82b8ac8..0f7b64d1 100644 --- a/src/DOMAPI/AnimationEffect.res +++ b/src/DOMAPI/AnimationEffect.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AnimationEffect/getTiming) diff --git a/src/DOMAPI/CSSRuleList.res b/src/DOMAPI/CSSRuleList.res index bf28421c..536700c1 100644 --- a/src/DOMAPI/CSSRuleList.res +++ b/src/DOMAPI/CSSRuleList.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CSSRuleList/item) diff --git a/src/DOMAPI/CSSStyleDeclaration.res b/src/DOMAPI/CSSStyleDeclaration.res index 85462137..edfc0500 100644 --- a/src/DOMAPI/CSSStyleDeclaration.res +++ b/src/DOMAPI/CSSStyleDeclaration.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/item) diff --git a/src/DOMAPI/CSSStyleSheet.res b/src/DOMAPI/CSSStyleSheet.res index 4091b1d0..bd19bc62 100644 --- a/src/DOMAPI/CSSStyleSheet.res +++ b/src/DOMAPI/CSSStyleSheet.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet) diff --git a/src/DOMAPI/CSSStyleValue.res b/src/DOMAPI/CSSStyleValue.res index 43c1bd2b..4cde8e26 100644 --- a/src/DOMAPI/CSSStyleValue.res +++ b/src/DOMAPI/CSSStyleValue.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parse_static) diff --git a/src/DOMAPI/CanvasRenderingContext2D.res b/src/DOMAPI/CanvasRenderingContext2D.res index b52b56ad..aaeec84c 100644 --- a/src/DOMAPI/CanvasRenderingContext2D.res +++ b/src/DOMAPI/CanvasRenderingContext2D.res @@ -1,5 +1,5 @@ -open DOMAPI -open CanvasAPI +open DOMTypes +open CanvasTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/save) diff --git a/src/DOMAPI/CaretPosition.res b/src/DOMAPI/CaretPosition.res index 7c8a5ce0..546b9413 100644 --- a/src/DOMAPI/CaretPosition.res +++ b/src/DOMAPI/CaretPosition.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes @send external getClientRect: caretPosition => domRect = "getClientRect" diff --git a/src/DOMAPI/CharacterData.res b/src/DOMAPI/CharacterData.res index 8ebc3065..2131244c 100644 --- a/src/DOMAPI/CharacterData.res +++ b/src/DOMAPI/CharacterData.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes module Impl = ( T: { diff --git a/src/DOMAPI/Comment.res b/src/DOMAPI/Comment.res index 19f8be4e..300ccff1 100644 --- a/src/DOMAPI/Comment.res +++ b/src/DOMAPI/Comment.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes include CharacterData.Impl({type t = comment}) diff --git a/src/DOMAPI/CustomElementRegistry.res b/src/DOMAPI/CustomElementRegistry.res index 2de909b6..5d517a13 100644 --- a/src/DOMAPI/CustomElementRegistry.res +++ b/src/DOMAPI/CustomElementRegistry.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/define) diff --git a/src/DOMAPI/DOMImplementation.res b/src/DOMAPI/DOMImplementation.res index d87ee6c3..a096cf0b 100644 --- a/src/DOMAPI/DOMImplementation.res +++ b/src/DOMAPI/DOMImplementation.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocumentType) diff --git a/src/DOMAPI/DOMMatrix.res b/src/DOMAPI/DOMMatrix.res index 6bc3d054..58f885bd 100644 --- a/src/DOMAPI/DOMMatrix.res +++ b/src/DOMAPI/DOMMatrix.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes open Prelude /** diff --git a/src/DOMAPI/DOMMatrixReadOnly.res b/src/DOMAPI/DOMMatrixReadOnly.res index 4ecc1bbe..4aa8cd1e 100644 --- a/src/DOMAPI/DOMMatrixReadOnly.res +++ b/src/DOMAPI/DOMMatrixReadOnly.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes open Prelude /** diff --git a/src/DOMAPI/DOMPoint.res b/src/DOMAPI/DOMPoint.res index 75c31e9a..8efb3021 100644 --- a/src/DOMAPI/DOMPoint.res +++ b/src/DOMAPI/DOMPoint.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMPoint) diff --git a/src/DOMAPI/DOMPointReadOnly.res b/src/DOMAPI/DOMPointReadOnly.res index 4d92aaac..2732baed 100644 --- a/src/DOMAPI/DOMPointReadOnly.res +++ b/src/DOMAPI/DOMPointReadOnly.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly) diff --git a/src/DOMAPI/DOMRect.res b/src/DOMAPI/DOMRect.res index 6bcb61fe..2151d47a 100644 --- a/src/DOMAPI/DOMRect.res +++ b/src/DOMAPI/DOMRect.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMRect) diff --git a/src/DOMAPI/DOMRectList.res b/src/DOMAPI/DOMRectList.res index e055e812..28725a09 100644 --- a/src/DOMAPI/DOMRectList.res +++ b/src/DOMAPI/DOMRectList.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes @send external item: (domRectList, int) => domRect = "item" diff --git a/src/DOMAPI/DOMRectReadOnly.res b/src/DOMAPI/DOMRectReadOnly.res index 1e02459d..1840b4bf 100644 --- a/src/DOMAPI/DOMRectReadOnly.res +++ b/src/DOMAPI/DOMRectReadOnly.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly) diff --git a/src/DOMAPI/DOMTokenList.res b/src/DOMAPI/DOMTokenList.res index 47348f69..c2e606e5 100644 --- a/src/DOMAPI/DOMTokenList.res +++ b/src/DOMAPI/DOMTokenList.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes /** Returns the token with index index. diff --git a/src/DOMAPI/Document.res b/src/DOMAPI/Document.res index fa06b986..dd33ab26 100644 --- a/src/DOMAPI/Document.res +++ b/src/DOMAPI/Document.res @@ -1,6 +1,6 @@ -open DOMAPI -open EventAPI -open ViewTransitionsAPI +open DOMTypes +open EventTypes +open ViewTransitionsTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document) diff --git a/src/DOMAPI/DocumentFragment.res b/src/DOMAPI/DocumentFragment.res index 297fc6fd..a1ef3b00 100644 --- a/src/DOMAPI/DocumentFragment.res +++ b/src/DOMAPI/DocumentFragment.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DocumentFragmentFragment) diff --git a/src/DOMAPI/DocumentTimeline.res b/src/DOMAPI/DocumentTimeline.res index d46f2cf7..e6cb2b2e 100644 --- a/src/DOMAPI/DocumentTimeline.res +++ b/src/DOMAPI/DocumentTimeline.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DocumentTimeline) diff --git a/src/DOMAPI/Element.res b/src/DOMAPI/Element.res index 179e6132..b8281fa2 100644 --- a/src/DOMAPI/Element.res +++ b/src/DOMAPI/Element.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes open Prelude module Impl = ( @@ -419,7 +419,7 @@ element->Element.scrollIntoView_alignToTop() Scrolls the element's ancestor containers such that the element on which scrollIntoView() is called is visible to the user. ```res -element->Element.scrollIntoViewWithOptions({ behavior: DOMAPI.Smooth }) +element->Element.scrollIntoViewWithOptions({ behavior: DOMTypes.Smooth }) ``` [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView) diff --git a/src/DOMAPI/ElementInternals.res b/src/DOMAPI/ElementInternals.res index f873a2e7..6823475c 100644 --- a/src/DOMAPI/ElementInternals.res +++ b/src/DOMAPI/ElementInternals.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes /** Sets both the state and submission value of internals's target element to value. diff --git a/src/DOMAPI/FileList.res b/src/DOMAPI/FileList.res index 07cb6960..51b5569e 100644 --- a/src/DOMAPI/FileList.res +++ b/src/DOMAPI/FileList.res @@ -1,5 +1,5 @@ -open FileAPI -open DOMAPI +open FileTypes +open DOMTypes /** Returns the `File` at the specified index. diff --git a/src/DOMAPI/HTMLAnchorElement.res b/src/DOMAPI/HTMLAnchorElement.res index 0cd8b3cb..db3a8c49 100644 --- a/src/DOMAPI/HTMLAnchorElement.res +++ b/src/DOMAPI/HTMLAnchorElement.res @@ -1,3 +1,3 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlAnchorElement}) diff --git a/src/DOMAPI/HTMLAreaElement.res b/src/DOMAPI/HTMLAreaElement.res index 9e41e124..ef900903 100644 --- a/src/DOMAPI/HTMLAreaElement.res +++ b/src/DOMAPI/HTMLAreaElement.res @@ -1,3 +1,3 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlAreaElement}) diff --git a/src/DOMAPI/HTMLAudioElement.res b/src/DOMAPI/HTMLAudioElement.res index 31639b2a..6394b48c 100644 --- a/src/DOMAPI/HTMLAudioElement.res +++ b/src/DOMAPI/HTMLAudioElement.res @@ -1,3 +1,3 @@ -open DOMAPI +open DOMTypes include HTMLMediaElement.Impl({type t = htmlAudioElement}) diff --git a/src/DOMAPI/HTMLBRElement.res b/src/DOMAPI/HTMLBRElement.res index 293fdbab..2e874ac0 100644 --- a/src/DOMAPI/HTMLBRElement.res +++ b/src/DOMAPI/HTMLBRElement.res @@ -1,3 +1,3 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlbrElement}) diff --git a/src/DOMAPI/HTMLBaseElement.res b/src/DOMAPI/HTMLBaseElement.res index 8c2e0d1e..a1bcd879 100644 --- a/src/DOMAPI/HTMLBaseElement.res +++ b/src/DOMAPI/HTMLBaseElement.res @@ -1,3 +1,3 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlBaseElement}) diff --git a/src/DOMAPI/HTMLBodyElement.res b/src/DOMAPI/HTMLBodyElement.res index 4297a96d..9a86a41d 100644 --- a/src/DOMAPI/HTMLBodyElement.res +++ b/src/DOMAPI/HTMLBodyElement.res @@ -1,3 +1,3 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlBodyElement}) diff --git a/src/DOMAPI/HTMLButtonElement.res b/src/DOMAPI/HTMLButtonElement.res index d98b3db4..be9e2066 100644 --- a/src/DOMAPI/HTMLButtonElement.res +++ b/src/DOMAPI/HTMLButtonElement.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlButtonElement}) diff --git a/src/DOMAPI/HTMLCanvasElement.res b/src/DOMAPI/HTMLCanvasElement.res index d7d7121f..4ff3901c 100644 --- a/src/DOMAPI/HTMLCanvasElement.res +++ b/src/DOMAPI/HTMLCanvasElement.res @@ -1,6 +1,6 @@ -open DOMAPI -open CanvasAPI -open MediaCaptureAndStreamsAPI +open DOMTypes +open CanvasTypes +open MediaCaptureAndStreamsTypes include HTMLElement.Impl({type t = htmlCanvasElement}) diff --git a/src/DOMAPI/HTMLCollection.res b/src/DOMAPI/HTMLCollection.res index 02d07cfd..f0bb930b 100644 --- a/src/DOMAPI/HTMLCollection.res +++ b/src/DOMAPI/HTMLCollection.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes /** Retrieves an object from various collections. diff --git a/src/DOMAPI/HTMLDListElement.res b/src/DOMAPI/HTMLDListElement.res index 22dd9838..111025be 100644 --- a/src/DOMAPI/HTMLDListElement.res +++ b/src/DOMAPI/HTMLDListElement.res @@ -1,3 +1,3 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmldListElement}) diff --git a/src/DOMAPI/HTMLDataElement.res b/src/DOMAPI/HTMLDataElement.res index f0715b19..4444437b 100644 --- a/src/DOMAPI/HTMLDataElement.res +++ b/src/DOMAPI/HTMLDataElement.res @@ -1,3 +1,3 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlDataElement}) diff --git a/src/DOMAPI/HTMLDataListElement.res b/src/DOMAPI/HTMLDataListElement.res index 18e485e7..17cfbf07 100644 --- a/src/DOMAPI/HTMLDataListElement.res +++ b/src/DOMAPI/HTMLDataListElement.res @@ -1,3 +1,3 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlDataListElement}) diff --git a/src/DOMAPI/HTMLDialogElement.res b/src/DOMAPI/HTMLDialogElement.res index e759b578..f6154a07 100644 --- a/src/DOMAPI/HTMLDialogElement.res +++ b/src/DOMAPI/HTMLDialogElement.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlDialogElement}) diff --git a/src/DOMAPI/HTMLDivElement.res b/src/DOMAPI/HTMLDivElement.res index 799887c6..ed9b4423 100644 --- a/src/DOMAPI/HTMLDivElement.res +++ b/src/DOMAPI/HTMLDivElement.res @@ -1,3 +1,3 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlDivElement}) diff --git a/src/DOMAPI/HTMLElement.res b/src/DOMAPI/HTMLElement.res index 08c18904..26813d70 100644 --- a/src/DOMAPI/HTMLElement.res +++ b/src/DOMAPI/HTMLElement.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes module Impl = ( T: { diff --git a/src/DOMAPI/HTMLEmbedElement.res b/src/DOMAPI/HTMLEmbedElement.res index 762afd69..da71d3cd 100644 --- a/src/DOMAPI/HTMLEmbedElement.res +++ b/src/DOMAPI/HTMLEmbedElement.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlEmbedElement}) diff --git a/src/DOMAPI/HTMLFieldSetElement.res b/src/DOMAPI/HTMLFieldSetElement.res index 57defe8e..ee664d2a 100644 --- a/src/DOMAPI/HTMLFieldSetElement.res +++ b/src/DOMAPI/HTMLFieldSetElement.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlFieldSetElement}) diff --git a/src/DOMAPI/HTMLFormControlsCollection.res b/src/DOMAPI/HTMLFormControlsCollection.res index 2a5540bc..e3cc2969 100644 --- a/src/DOMAPI/HTMLFormControlsCollection.res +++ b/src/DOMAPI/HTMLFormControlsCollection.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes external asHTMLCollection: htmlFormControlsCollection => htmlCollection = "%identity" /** diff --git a/src/DOMAPI/HTMLFormElement.res b/src/DOMAPI/HTMLFormElement.res index 8a6fabc4..605cd59b 100644 --- a/src/DOMAPI/HTMLFormElement.res +++ b/src/DOMAPI/HTMLFormElement.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlFormElement}) diff --git a/src/DOMAPI/HTMLFrameSetElement.res b/src/DOMAPI/HTMLFrameSetElement.res index 2aed97e0..e7d2486c 100644 --- a/src/DOMAPI/HTMLFrameSetElement.res +++ b/src/DOMAPI/HTMLFrameSetElement.res @@ -1,3 +1,3 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlFrameSetElement}) diff --git a/src/DOMAPI/HTMLHRElement.res b/src/DOMAPI/HTMLHRElement.res index 0f6677ec..eeb9a738 100644 --- a/src/DOMAPI/HTMLHRElement.res +++ b/src/DOMAPI/HTMLHRElement.res @@ -1,3 +1,3 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlhrElement}) diff --git a/src/DOMAPI/HTMLHeadElement.res b/src/DOMAPI/HTMLHeadElement.res index cbebe169..9f9c1a44 100644 --- a/src/DOMAPI/HTMLHeadElement.res +++ b/src/DOMAPI/HTMLHeadElement.res @@ -1,3 +1,3 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlHeadElement}) diff --git a/src/DOMAPI/HTMLHeadingElement.res b/src/DOMAPI/HTMLHeadingElement.res index 5411b9d0..70129300 100644 --- a/src/DOMAPI/HTMLHeadingElement.res +++ b/src/DOMAPI/HTMLHeadingElement.res @@ -1,3 +1,3 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlHeadingElement}) diff --git a/src/DOMAPI/HTMLHtmlElement.res b/src/DOMAPI/HTMLHtmlElement.res index 8db41737..7158918d 100644 --- a/src/DOMAPI/HTMLHtmlElement.res +++ b/src/DOMAPI/HTMLHtmlElement.res @@ -1,3 +1,3 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlHtmlElement}) diff --git a/src/DOMAPI/HTMLIFrameElement.res b/src/DOMAPI/HTMLIFrameElement.res index 68389563..b73ad0a1 100644 --- a/src/DOMAPI/HTMLIFrameElement.res +++ b/src/DOMAPI/HTMLIFrameElement.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmliFrameElement}) diff --git a/src/DOMAPI/HTMLImageElement.res b/src/DOMAPI/HTMLImageElement.res index 78bfb1c1..0567f367 100644 --- a/src/DOMAPI/HTMLImageElement.res +++ b/src/DOMAPI/HTMLImageElement.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlImageElement}) diff --git a/src/DOMAPI/HTMLInputElement.res b/src/DOMAPI/HTMLInputElement.res index c538847a..19a90eda 100644 --- a/src/DOMAPI/HTMLInputElement.res +++ b/src/DOMAPI/HTMLInputElement.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlInputElement}) diff --git a/src/DOMAPI/HTMLLIElement.res b/src/DOMAPI/HTMLLIElement.res index 091c7fab..535a4aca 100644 --- a/src/DOMAPI/HTMLLIElement.res +++ b/src/DOMAPI/HTMLLIElement.res @@ -1,3 +1,3 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlliElement}) diff --git a/src/DOMAPI/HTMLLabelElement.res b/src/DOMAPI/HTMLLabelElement.res index 1e1c6a25..42b8d3c8 100644 --- a/src/DOMAPI/HTMLLabelElement.res +++ b/src/DOMAPI/HTMLLabelElement.res @@ -1,3 +1,3 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlLabelElement}) diff --git a/src/DOMAPI/HTMLLegendElement.res b/src/DOMAPI/HTMLLegendElement.res index 6297289f..bef8b1ed 100644 --- a/src/DOMAPI/HTMLLegendElement.res +++ b/src/DOMAPI/HTMLLegendElement.res @@ -1,3 +1,3 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlLegendElement}) diff --git a/src/DOMAPI/HTMLLinkElement.res b/src/DOMAPI/HTMLLinkElement.res index 5e661c06..eb8666d1 100644 --- a/src/DOMAPI/HTMLLinkElement.res +++ b/src/DOMAPI/HTMLLinkElement.res @@ -1,3 +1,3 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlLinkElement}) diff --git a/src/DOMAPI/HTMLMapElement.res b/src/DOMAPI/HTMLMapElement.res index 7e50556c..0e07dacb 100644 --- a/src/DOMAPI/HTMLMapElement.res +++ b/src/DOMAPI/HTMLMapElement.res @@ -1,3 +1,3 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlMapElement}) diff --git a/src/DOMAPI/HTMLMediaElement.res b/src/DOMAPI/HTMLMediaElement.res index a616d366..b8ffea56 100644 --- a/src/DOMAPI/HTMLMediaElement.res +++ b/src/DOMAPI/HTMLMediaElement.res @@ -1,6 +1,6 @@ -open DOMAPI -open WebVTTAPI -open EncryptedMediaExtensionsAPI +open DOMTypes +open WebVTTTypes +open EncryptedMediaExtensionsTypes module Impl = ( T: { diff --git a/src/DOMAPI/HTMLMenuElement.res b/src/DOMAPI/HTMLMenuElement.res index ea7fae0d..8bb160db 100644 --- a/src/DOMAPI/HTMLMenuElement.res +++ b/src/DOMAPI/HTMLMenuElement.res @@ -1,3 +1,3 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlMenuElement}) diff --git a/src/DOMAPI/HTMLMetaElement.res b/src/DOMAPI/HTMLMetaElement.res index 252fd759..8bd71af8 100644 --- a/src/DOMAPI/HTMLMetaElement.res +++ b/src/DOMAPI/HTMLMetaElement.res @@ -1,3 +1,3 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlMetaElement}) diff --git a/src/DOMAPI/HTMLMeterElement.res b/src/DOMAPI/HTMLMeterElement.res index 93ed3b75..de6d3000 100644 --- a/src/DOMAPI/HTMLMeterElement.res +++ b/src/DOMAPI/HTMLMeterElement.res @@ -1,3 +1,3 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlMeterElement}) diff --git a/src/DOMAPI/HTMLModElement.res b/src/DOMAPI/HTMLModElement.res index ff8dfb57..08dbfbf6 100644 --- a/src/DOMAPI/HTMLModElement.res +++ b/src/DOMAPI/HTMLModElement.res @@ -1,3 +1,3 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlModElement}) diff --git a/src/DOMAPI/HTMLOListElement.res b/src/DOMAPI/HTMLOListElement.res index a8840df4..84681754 100644 --- a/src/DOMAPI/HTMLOListElement.res +++ b/src/DOMAPI/HTMLOListElement.res @@ -1,3 +1,3 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmloListElement}) diff --git a/src/DOMAPI/HTMLObjectElement.res b/src/DOMAPI/HTMLObjectElement.res index 06b59bec..38b98c45 100644 --- a/src/DOMAPI/HTMLObjectElement.res +++ b/src/DOMAPI/HTMLObjectElement.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlObjectElement}) diff --git a/src/DOMAPI/HTMLOptGroupElement.res b/src/DOMAPI/HTMLOptGroupElement.res index 2f348655..265398bd 100644 --- a/src/DOMAPI/HTMLOptGroupElement.res +++ b/src/DOMAPI/HTMLOptGroupElement.res @@ -1,3 +1,3 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlOptGroupElement}) diff --git a/src/DOMAPI/HTMLOptionElement.res b/src/DOMAPI/HTMLOptionElement.res index 7f51c41d..7e255bff 100644 --- a/src/DOMAPI/HTMLOptionElement.res +++ b/src/DOMAPI/HTMLOptionElement.res @@ -1,3 +1,3 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlOptionElement}) diff --git a/src/DOMAPI/HTMLOptionsCollection.res b/src/DOMAPI/HTMLOptionsCollection.res index b4390c9e..589f2f47 100644 --- a/src/DOMAPI/HTMLOptionsCollection.res +++ b/src/DOMAPI/HTMLOptionsCollection.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes /** Inserts element before the node given by before. diff --git a/src/DOMAPI/HTMLOutputElement.res b/src/DOMAPI/HTMLOutputElement.res index e8194c77..2333276e 100644 --- a/src/DOMAPI/HTMLOutputElement.res +++ b/src/DOMAPI/HTMLOutputElement.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlOutputElement}) diff --git a/src/DOMAPI/HTMLParagraphElement.res b/src/DOMAPI/HTMLParagraphElement.res index 2bd8fa6c..7ad57c39 100644 --- a/src/DOMAPI/HTMLParagraphElement.res +++ b/src/DOMAPI/HTMLParagraphElement.res @@ -1,3 +1,3 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlParagraphElement}) diff --git a/src/DOMAPI/HTMLPictureElement.res b/src/DOMAPI/HTMLPictureElement.res index a8a4799b..7729750e 100644 --- a/src/DOMAPI/HTMLPictureElement.res +++ b/src/DOMAPI/HTMLPictureElement.res @@ -1,3 +1,3 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlPictureElement}) diff --git a/src/DOMAPI/HTMLPreElement.res b/src/DOMAPI/HTMLPreElement.res index febd6a5d..c3dcc0c6 100644 --- a/src/DOMAPI/HTMLPreElement.res +++ b/src/DOMAPI/HTMLPreElement.res @@ -1,3 +1,3 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlPreElement}) diff --git a/src/DOMAPI/HTMLProgressElement.res b/src/DOMAPI/HTMLProgressElement.res index 6d728c78..b0f3ebaf 100644 --- a/src/DOMAPI/HTMLProgressElement.res +++ b/src/DOMAPI/HTMLProgressElement.res @@ -1,3 +1,3 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlProgressElement}) diff --git a/src/DOMAPI/HTMLQuoteElement.res b/src/DOMAPI/HTMLQuoteElement.res index de535767..27dec6e1 100644 --- a/src/DOMAPI/HTMLQuoteElement.res +++ b/src/DOMAPI/HTMLQuoteElement.res @@ -1,3 +1,3 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlQuoteElement}) diff --git a/src/DOMAPI/HTMLScriptElement.res b/src/DOMAPI/HTMLScriptElement.res index 68e36c19..776f7753 100644 --- a/src/DOMAPI/HTMLScriptElement.res +++ b/src/DOMAPI/HTMLScriptElement.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlScriptElement}) diff --git a/src/DOMAPI/HTMLSelectElement.res b/src/DOMAPI/HTMLSelectElement.res index 8e05f4be..755b4c8a 100644 --- a/src/DOMAPI/HTMLSelectElement.res +++ b/src/DOMAPI/HTMLSelectElement.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes /** Retrieves a select object or an object from an options collection. diff --git a/src/DOMAPI/HTMLSlotElement.res b/src/DOMAPI/HTMLSlotElement.res index 2ae008f8..82f4e9f0 100644 --- a/src/DOMAPI/HTMLSlotElement.res +++ b/src/DOMAPI/HTMLSlotElement.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlSlotElement}) diff --git a/src/DOMAPI/HTMLSourceElement.res b/src/DOMAPI/HTMLSourceElement.res index af385a11..726601dc 100644 --- a/src/DOMAPI/HTMLSourceElement.res +++ b/src/DOMAPI/HTMLSourceElement.res @@ -1,3 +1,3 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlSourceElement}) diff --git a/src/DOMAPI/HTMLSpanElement.res b/src/DOMAPI/HTMLSpanElement.res index 62e59a58..cf4f5156 100644 --- a/src/DOMAPI/HTMLSpanElement.res +++ b/src/DOMAPI/HTMLSpanElement.res @@ -1,3 +1,3 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlSpanElement}) diff --git a/src/DOMAPI/HTMLStyleElement.res b/src/DOMAPI/HTMLStyleElement.res index 54a56e52..42cec51c 100644 --- a/src/DOMAPI/HTMLStyleElement.res +++ b/src/DOMAPI/HTMLStyleElement.res @@ -1,3 +1,3 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlStyleElement}) diff --git a/src/DOMAPI/HTMLTableCaptionElement.res b/src/DOMAPI/HTMLTableCaptionElement.res index 992e74e6..d05d7647 100644 --- a/src/DOMAPI/HTMLTableCaptionElement.res +++ b/src/DOMAPI/HTMLTableCaptionElement.res @@ -1,3 +1,3 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlTableCaptionElement}) diff --git a/src/DOMAPI/HTMLTableCellElement.res b/src/DOMAPI/HTMLTableCellElement.res index 73006bc2..0d7411fb 100644 --- a/src/DOMAPI/HTMLTableCellElement.res +++ b/src/DOMAPI/HTMLTableCellElement.res @@ -1,3 +1,3 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlTableCellElement}) diff --git a/src/DOMAPI/HTMLTableElement.res b/src/DOMAPI/HTMLTableElement.res index e2002927..61711e4c 100644 --- a/src/DOMAPI/HTMLTableElement.res +++ b/src/DOMAPI/HTMLTableElement.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlTableElement}) diff --git a/src/DOMAPI/HTMLTableRowElement.res b/src/DOMAPI/HTMLTableRowElement.res index 40c786f4..bdc39661 100644 --- a/src/DOMAPI/HTMLTableRowElement.res +++ b/src/DOMAPI/HTMLTableRowElement.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlTableRowElement}) diff --git a/src/DOMAPI/HTMLTableSectionElement.res b/src/DOMAPI/HTMLTableSectionElement.res index db748f1e..60739b3b 100644 --- a/src/DOMAPI/HTMLTableSectionElement.res +++ b/src/DOMAPI/HTMLTableSectionElement.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlTableSectionElement}) diff --git a/src/DOMAPI/HTMLTemplateElement.res b/src/DOMAPI/HTMLTemplateElement.res index 81b52f15..244b779f 100644 --- a/src/DOMAPI/HTMLTemplateElement.res +++ b/src/DOMAPI/HTMLTemplateElement.res @@ -1,3 +1,3 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlTemplateElement}) diff --git a/src/DOMAPI/HTMLTextAreaElement.res b/src/DOMAPI/HTMLTextAreaElement.res index df950aff..dec5a361 100644 --- a/src/DOMAPI/HTMLTextAreaElement.res +++ b/src/DOMAPI/HTMLTextAreaElement.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlTextAreaElement}) diff --git a/src/DOMAPI/HTMLTimeElement.res b/src/DOMAPI/HTMLTimeElement.res index a07398ea..431046a2 100644 --- a/src/DOMAPI/HTMLTimeElement.res +++ b/src/DOMAPI/HTMLTimeElement.res @@ -1,3 +1,3 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlTimeElement}) diff --git a/src/DOMAPI/HTMLTitleElement.res b/src/DOMAPI/HTMLTitleElement.res index 5a3396d2..e40a2e2d 100644 --- a/src/DOMAPI/HTMLTitleElement.res +++ b/src/DOMAPI/HTMLTitleElement.res @@ -1,3 +1,3 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlTitleElement}) diff --git a/src/DOMAPI/HTMLTrackElement.res b/src/DOMAPI/HTMLTrackElement.res index 50ad2e80..53abf59f 100644 --- a/src/DOMAPI/HTMLTrackElement.res +++ b/src/DOMAPI/HTMLTrackElement.res @@ -1,3 +1,3 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmlTrackElement}) diff --git a/src/DOMAPI/HTMLUListElement.res b/src/DOMAPI/HTMLUListElement.res index 60d7d2e5..70d76237 100644 --- a/src/DOMAPI/HTMLUListElement.res +++ b/src/DOMAPI/HTMLUListElement.res @@ -1,3 +1,3 @@ -open DOMAPI +open DOMTypes include HTMLElement.Impl({type t = htmluListElement}) diff --git a/src/DOMAPI/HTMLVideoElement.res b/src/DOMAPI/HTMLVideoElement.res index e352549c..61a3cbeb 100644 --- a/src/DOMAPI/HTMLVideoElement.res +++ b/src/DOMAPI/HTMLVideoElement.res @@ -1,5 +1,5 @@ -open DOMAPI -open PictureInPictureAPI +open DOMTypes +open PictureInPictureTypes include HTMLMediaElement.Impl({type t = htmlVideoElement}) diff --git a/src/DOMAPI/IdleDeadline.res b/src/DOMAPI/IdleDeadline.res index a1ed548b..7dde2302 100644 --- a/src/DOMAPI/IdleDeadline.res +++ b/src/DOMAPI/IdleDeadline.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/IdleDeadline/timeRemaining) diff --git a/src/DOMAPI/ImageData.res b/src/DOMAPI/ImageData.res index 7cd8701e..93dc1827 100644 --- a/src/DOMAPI/ImageData.res +++ b/src/DOMAPI/ImageData.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ImageData) diff --git a/src/DOMAPI/Location.res b/src/DOMAPI/Location.res index ef3b13e2..30ea3bb3 100644 --- a/src/DOMAPI/Location.res +++ b/src/DOMAPI/Location.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes /** Navigates to the given URL. diff --git a/src/DOMAPI/MediaList.res b/src/DOMAPI/MediaList.res index 42d85231..63f0c5b2 100644 --- a/src/DOMAPI/MediaList.res +++ b/src/DOMAPI/MediaList.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MediaList/item) diff --git a/src/DOMAPI/MediaQueryList.res b/src/DOMAPI/MediaQueryList.res index 7f7d2bab..3b6fd949 100644 --- a/src/DOMAPI/MediaQueryList.res +++ b/src/DOMAPI/MediaQueryList.res @@ -1,3 +1,3 @@ -open DOMAPI +open DOMTypes include EventTarget.Impl({type t = mediaQueryList}) diff --git a/src/DOMAPI/NamedNodeMap.res b/src/DOMAPI/NamedNodeMap.res index 5b56bec7..944130e7 100644 --- a/src/DOMAPI/NamedNodeMap.res +++ b/src/DOMAPI/NamedNodeMap.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/item) diff --git a/src/DOMAPI/Navigator.res b/src/DOMAPI/Navigator.res index 24288de5..8262506c 100644 --- a/src/DOMAPI/Navigator.res +++ b/src/DOMAPI/Navigator.res @@ -1,10 +1,14 @@ -open DOMAPI -open FileAPI -open FetchAPI -open URLAPI -open EncryptedMediaExtensionsAPI -open GamepadAPI -open WebMIDIAPI +open DOMTypes +open FileTypes +open FetchTypes +open URLTypes +open EncryptedMediaExtensionsTypes +open GamepadTypes +open WebMIDITypes + +type t = DOMTypes.navigator = {...DOMTypes.navigator} + +external current: t = "navigator" /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Navigator/setAppBadge) diff --git a/src/DOMAPI/Node.res b/src/DOMAPI/Node.res index db1019b0..aa456ae4 100644 --- a/src/DOMAPI/Node.res +++ b/src/DOMAPI/Node.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes module Impl = ( T: { diff --git a/src/DOMAPI/NodeFilter.res b/src/DOMAPI/NodeFilter.res index e1bb38f6..038817a4 100644 --- a/src/DOMAPI/NodeFilter.res +++ b/src/DOMAPI/NodeFilter.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes @send external acceptNode: (nodeFilter, node) => int = "acceptNode" diff --git a/src/DOMAPI/NodeIterator.res b/src/DOMAPI/NodeIterator.res index cfd0fd17..4bb7995e 100644 --- a/src/DOMAPI/NodeIterator.res +++ b/src/DOMAPI/NodeIterator.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/NodeIterator/nextNode) diff --git a/src/DOMAPI/NodeList.res b/src/DOMAPI/NodeList.res index 526b4294..c811260c 100644 --- a/src/DOMAPI/NodeList.res +++ b/src/DOMAPI/NodeList.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes /** Returns the node with index index from the collection. The nodes are sorted in tree order. diff --git a/src/DOMAPI/Range.res b/src/DOMAPI/Range.res index f0cdd60d..194fc538 100644 --- a/src/DOMAPI/Range.res +++ b/src/DOMAPI/Range.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Range) diff --git a/src/DOMAPI/SVGGraphicsElement.res b/src/DOMAPI/SVGGraphicsElement.res index b72e2348..a64ddbc0 100644 --- a/src/DOMAPI/SVGGraphicsElement.res +++ b/src/DOMAPI/SVGGraphicsElement.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes include Element.Impl({type t = svgGraphicsElement}) diff --git a/src/DOMAPI/SVGLength.res b/src/DOMAPI/SVGLength.res index 6d9ac017..54a0a442 100644 --- a/src/DOMAPI/SVGLength.res +++ b/src/DOMAPI/SVGLength.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes @send external newValueSpecifiedUnits: ( diff --git a/src/DOMAPI/ScreenOrientation.res b/src/DOMAPI/ScreenOrientation.res index 7895d421..d58f7b41 100644 --- a/src/DOMAPI/ScreenOrientation.res +++ b/src/DOMAPI/ScreenOrientation.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes include EventTarget.Impl({type t = screenOrientation}) diff --git a/src/DOMAPI/Selection.res b/src/DOMAPI/Selection.res index 101ca031..4d021087 100644 --- a/src/DOMAPI/Selection.res +++ b/src/DOMAPI/Selection.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Selection/getRangeAt) diff --git a/src/DOMAPI/ShadowRoot.res b/src/DOMAPI/ShadowRoot.res index f0ef8784..6a0be112 100644 --- a/src/DOMAPI/ShadowRoot.res +++ b/src/DOMAPI/ShadowRoot.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes include DocumentFragment.Impl({type t = shadowRoot}) diff --git a/src/DOMAPI/StylePropertyMap.res b/src/DOMAPI/StylePropertyMap.res index 98f12ff7..53f2dd79 100644 --- a/src/DOMAPI/StylePropertyMap.res +++ b/src/DOMAPI/StylePropertyMap.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes external asStylePropertyMapReadOnly: stylePropertyMap => stylePropertyMapReadOnly = "%identity" /** diff --git a/src/DOMAPI/StylePropertyMapReadOnly.res b/src/DOMAPI/StylePropertyMapReadOnly.res index a228314a..d1878496 100644 --- a/src/DOMAPI/StylePropertyMapReadOnly.res +++ b/src/DOMAPI/StylePropertyMapReadOnly.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/getAll) diff --git a/src/DOMAPI/StyleSheetList.res b/src/DOMAPI/StyleSheetList.res index 86e3680d..beb3ad2d 100644 --- a/src/DOMAPI/StyleSheetList.res +++ b/src/DOMAPI/StyleSheetList.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/StyleSheetList/item) diff --git a/src/DOMAPI/Text.res b/src/DOMAPI/Text.res index 9d0c30da..0361fe89 100644 --- a/src/DOMAPI/Text.res +++ b/src/DOMAPI/Text.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes include CharacterData.Impl({type t = text}) diff --git a/src/DOMAPI/TextTrackList.res b/src/DOMAPI/TextTrackList.res index 1708c3ba..0390d05a 100644 --- a/src/DOMAPI/TextTrackList.res +++ b/src/DOMAPI/TextTrackList.res @@ -1,5 +1,5 @@ -open DOMAPI -open WebVTTAPI +open DOMTypes +open WebVTTTypes include EventTarget.Impl({type t = textTrackList}) diff --git a/src/DOMAPI/TimeRanges.res b/src/DOMAPI/TimeRanges.res index d0dbf0b7..a0f56dd0 100644 --- a/src/DOMAPI/TimeRanges.res +++ b/src/DOMAPI/TimeRanges.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes /** Returns the time for the start of the range with the given index. diff --git a/src/DOMAPI/TreeWalker.res b/src/DOMAPI/TreeWalker.res index 270d73c6..dcf2f62e 100644 --- a/src/DOMAPI/TreeWalker.res +++ b/src/DOMAPI/TreeWalker.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/TreeWalker/parentNode) diff --git a/src/DOMAPI/VideoColorSpace.res b/src/DOMAPI/VideoColorSpace.res index fda1c533..01d41e6d 100644 --- a/src/DOMAPI/VideoColorSpace.res +++ b/src/DOMAPI/VideoColorSpace.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/VideoColorSpace) diff --git a/src/DOMAPI/VideoFrame.res b/src/DOMAPI/VideoFrame.res index 5ba36fdb..386ff5b1 100644 --- a/src/DOMAPI/VideoFrame.res +++ b/src/DOMAPI/VideoFrame.res @@ -1,6 +1,6 @@ -open DOMAPI +open DOMTypes open Prelude -open CanvasAPI +open CanvasTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/VideoFrame) diff --git a/src/DOMAPI/Window.res b/src/DOMAPI/Window.res index f4f8c272..00654288 100644 --- a/src/DOMAPI/Window.res +++ b/src/DOMAPI/Window.res @@ -1,8 +1,12 @@ -open DOMAPI -open CanvasAPI -open FileAPI -open ChannelMessagingAPI -open FetchAPI +open DOMTypes +open CanvasTypes +open FileTypes +open ChannelMessagingTypes +open FetchTypes + +type t = DOMTypes.window = {...DOMTypes.window} + +external current: t = "window" include EventTarget.Impl({type t = window}) diff --git a/src/DOMAPI/XPathExpression.res b/src/DOMAPI/XPathExpression.res index f884589a..f4c67a1d 100644 --- a/src/DOMAPI/XPathExpression.res +++ b/src/DOMAPI/XPathExpression.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/XPathExpression/evaluate) diff --git a/src/DOMAPI/XPathResult.res b/src/DOMAPI/XPathResult.res index 7ae04ed1..ee7e373d 100644 --- a/src/DOMAPI/XPathResult.res +++ b/src/DOMAPI/XPathResult.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/XPathResult/iterateNext) diff --git a/src/DOMAPI.res b/src/DOMTypes.res similarity index 99% rename from src/DOMAPI.res rename to src/DOMTypes.res index 073a1a03..d47af981 100644 --- a/src/DOMAPI.res +++ b/src/DOMTypes.res @@ -1,33 +1,33 @@ @@warning("-30") open Prelude -open EventAPI -open ClipboardAPI -open CredentialManagementAPI -open GeolocationAPI -open MediaCapabilitiesAPI -open MediaCaptureAndStreamsAPI -open MediaSessionAPI -open PermissionsAPI -open ScreenWakeLockAPI -open WebWorkersAPI -open ServiceWorkerAPI -open EncryptedMediaExtensionsAPI -open FileAPI -open HistoryAPI -open VisualViewportAPI -open WebSpeechAPI -open FileAndDirectoryEntriesAPI -open RemotePlaybackAPI -open CanvasAPI -open StorageAPI -open WebLocksAPI -open CSSFontLoadingAPI -open IndexedDBAPI -open WebCryptoAPI -open PerformanceAPI -open WebStorageAPI -open ChannelMessagingAPI +open EventTypes +open ClipboardTypes +open CredentialManagementTypes +open GeolocationTypes +open MediaCapabilitiesTypes +open MediaCaptureAndStreamsTypes +open MediaSessionTypes +open PermissionsTypes +open ScreenWakeLockTypes +open WebWorkersTypes +open ServiceWorkerTypes +open EncryptedMediaExtensionsTypes +open FileTypes +open HistoryTypes +open VisualViewportTypes +open WebSpeechTypes +open FileAndDirectoryEntriesTypes +open RemotePlaybackTypes +open CanvasTypes +open StorageTypes +open WebLocksTypes +open CSSFontLoadingTypes +open IndexedDBTypes +open WebCryptoTypes +open PerformanceTypes +open WebStorageTypes +open ChannelMessagingTypes type shadowRootMode = | @as("closed") Closed diff --git a/src/EncryptedMediaExtensionsAPI/MediaKeySession.res b/src/EncryptedMediaExtensionsAPI/MediaKeySession.res index 4ec4c2eb..83c5b52a 100644 --- a/src/EncryptedMediaExtensionsAPI/MediaKeySession.res +++ b/src/EncryptedMediaExtensionsAPI/MediaKeySession.res @@ -1,4 +1,4 @@ -open EncryptedMediaExtensionsAPI +open EncryptedMediaExtensionsTypes include EventTarget.Impl({type t = mediaKeySession}) diff --git a/src/EncryptedMediaExtensionsAPI/MediaKeyStatusMap.res b/src/EncryptedMediaExtensionsAPI/MediaKeyStatusMap.res index 4df42ea5..0c8668ce 100644 --- a/src/EncryptedMediaExtensionsAPI/MediaKeyStatusMap.res +++ b/src/EncryptedMediaExtensionsAPI/MediaKeyStatusMap.res @@ -1,4 +1,4 @@ -open EncryptedMediaExtensionsAPI +open EncryptedMediaExtensionsTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MediaKeyStatusMap/has) diff --git a/src/EncryptedMediaExtensionsAPI/MediaKeySystemAccess.res b/src/EncryptedMediaExtensionsAPI/MediaKeySystemAccess.res index 77671350..f9f93d2c 100644 --- a/src/EncryptedMediaExtensionsAPI/MediaKeySystemAccess.res +++ b/src/EncryptedMediaExtensionsAPI/MediaKeySystemAccess.res @@ -1,4 +1,4 @@ -open EncryptedMediaExtensionsAPI +open EncryptedMediaExtensionsTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MediaKeySystemAccess/getConfiguration) diff --git a/src/EncryptedMediaExtensionsAPI/MediaKeys.res b/src/EncryptedMediaExtensionsAPI/MediaKeys.res index a77ddf14..0680c383 100644 --- a/src/EncryptedMediaExtensionsAPI/MediaKeys.res +++ b/src/EncryptedMediaExtensionsAPI/MediaKeys.res @@ -1,4 +1,4 @@ -open EncryptedMediaExtensionsAPI +open EncryptedMediaExtensionsTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MediaKeys/createSession) diff --git a/src/EncryptedMediaExtensionsAPI.res b/src/EncryptedMediaExtensionsTypes.res similarity index 99% rename from src/EncryptedMediaExtensionsAPI.res rename to src/EncryptedMediaExtensionsTypes.res index 2a096a91..1532ba1a 100644 --- a/src/EncryptedMediaExtensionsAPI.res +++ b/src/EncryptedMediaExtensionsTypes.res @@ -1,6 +1,6 @@ @@warning("-30") -open EventAPI +open EventTypes type mediaKeysRequirement = | @as("not-allowed") NotAllowed diff --git a/src/EventAPI/AbortController.res b/src/EventAPI/AbortController.res index 841e88f2..4a171c43 100644 --- a/src/EventAPI/AbortController.res +++ b/src/EventAPI/AbortController.res @@ -1,4 +1,4 @@ -open EventAPI +open EventTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AbortController) diff --git a/src/EventAPI/AbortSignal.res b/src/EventAPI/AbortSignal.res index 8ca233b7..960b2559 100644 --- a/src/EventAPI/AbortSignal.res +++ b/src/EventAPI/AbortSignal.res @@ -1,4 +1,4 @@ -open EventAPI +open EventTypes include EventTarget.Impl({type t = abortSignal}) diff --git a/src/EventAPI/Event.res b/src/EventAPI/Event.res index 313ec41c..9233f649 100644 --- a/src/EventAPI/Event.res +++ b/src/EventAPI/Event.res @@ -1,4 +1,4 @@ -open EventAPI +open EventTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event) diff --git a/src/EventAPI/EventTarget.res b/src/EventAPI/EventTarget.res index ae5b2fb9..eb86f698 100644 --- a/src/EventAPI/EventTarget.res +++ b/src/EventAPI/EventTarget.res @@ -1,4 +1,4 @@ -open EventAPI +open EventTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget) diff --git a/src/EventAPI/ExtendableEvent.res b/src/EventAPI/ExtendableEvent.res index 4b564f51..df7bd5ff 100644 --- a/src/EventAPI/ExtendableEvent.res +++ b/src/EventAPI/ExtendableEvent.res @@ -1,4 +1,4 @@ -open EventAPI +open EventTypes module Impl = ( T: { diff --git a/src/EventAPI.res b/src/EventTypes.res similarity index 100% rename from src/EventAPI.res rename to src/EventTypes.res diff --git a/src/FetchAPI/BodyInit.res b/src/FetchAPI/BodyInit.res index dc254769..526d32bb 100644 --- a/src/FetchAPI/BodyInit.res +++ b/src/FetchAPI/BodyInit.res @@ -1,6 +1,6 @@ -open FileAPI -open FetchAPI -open URLAPI +open FileTypes +open FetchTypes +open URLTypes /** [Read more on MDN](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#setting_a_body) diff --git a/src/FetchAPI/FormData.res b/src/FetchAPI/FormData.res index 8e584cc4..9933173e 100644 --- a/src/FetchAPI/FormData.res +++ b/src/FetchAPI/FormData.res @@ -1,6 +1,6 @@ -open FetchAPI -open FileAPI -open DOMAPI +open FetchTypes +open FileTypes +open DOMTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FormData) diff --git a/src/FetchAPI/FormDataEntryValue.res b/src/FetchAPI/FormDataEntryValue.res index d31ac576..1899b96a 100644 --- a/src/FetchAPI/FormDataEntryValue.res +++ b/src/FetchAPI/FormDataEntryValue.res @@ -1,6 +1,6 @@ open Prelude -open FetchAPI -open FileAPI +open FetchTypes +open FileTypes external fromString: string => formDataEntryValue = "%identity" external fromFile: file => formDataEntryValue = "%identity" diff --git a/src/FetchAPI/Headers.res b/src/FetchAPI/Headers.res index 6ff41b63..aa312985 100644 --- a/src/FetchAPI/Headers.res +++ b/src/FetchAPI/Headers.res @@ -1,4 +1,4 @@ -open FetchAPI +open FetchTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Headers) diff --git a/src/FetchAPI/HeadersInit.res b/src/FetchAPI/HeadersInit.res index 50d96c95..1df10fe3 100644 --- a/src/FetchAPI/HeadersInit.res +++ b/src/FetchAPI/HeadersInit.res @@ -1,4 +1,4 @@ -open FetchAPI +open FetchTypes /** [Read more on MDN](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#setting_headers) diff --git a/src/FetchAPI/Request.res b/src/FetchAPI/Request.res index c1b71a31..7a45bedd 100644 --- a/src/FetchAPI/Request.res +++ b/src/FetchAPI/Request.res @@ -1,5 +1,5 @@ -open FetchAPI -open FileAPI +open FetchTypes +open FileTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Request) diff --git a/src/FetchAPI/Response.res b/src/FetchAPI/Response.res index d2e8b6d0..6675268d 100644 --- a/src/FetchAPI/Response.res +++ b/src/FetchAPI/Response.res @@ -1,6 +1,6 @@ -open FetchAPI -open FileAPI -open URLAPI +open FetchTypes +open FileTypes +open URLTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Response) diff --git a/src/FetchAPI.res b/src/FetchTypes.res similarity index 99% rename from src/FetchAPI.res rename to src/FetchTypes.res index 3e499f52..16f34d86 100644 --- a/src/FetchAPI.res +++ b/src/FetchTypes.res @@ -1,8 +1,8 @@ @@warning("-30") open Prelude -open EventAPI -open FileAPI +open EventTypes +open FileTypes type responseType = | @as("basic") Basic diff --git a/src/FileAPI/Blob.res b/src/FileAPI/Blob.res index ea4351ec..7ce19f7d 100644 --- a/src/FileAPI/Blob.res +++ b/src/FileAPI/Blob.res @@ -1,4 +1,4 @@ -open FileAPI +open FileTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Blob) diff --git a/src/FileAPI/File.res b/src/FileAPI/File.res index 7bc365e4..c8e39caa 100644 --- a/src/FileAPI/File.res +++ b/src/FileAPI/File.res @@ -1,4 +1,4 @@ -open FileAPI +open FileTypes include Blob.Impl({type t = file}) diff --git a/src/FileAPI/FileSystemDirectoryHandle.res b/src/FileAPI/FileSystemDirectoryHandle.res index a7ffa2a7..1d818f36 100644 --- a/src/FileAPI/FileSystemDirectoryHandle.res +++ b/src/FileAPI/FileSystemDirectoryHandle.res @@ -1,4 +1,4 @@ -open FileAPI +open FileTypes external asFileSystemHandle: fileSystemDirectoryHandle => fileSystemHandle = "%identity" /** diff --git a/src/FileAPI/FileSystemFileHandle.res b/src/FileAPI/FileSystemFileHandle.res index 050244a8..61567548 100644 --- a/src/FileAPI/FileSystemFileHandle.res +++ b/src/FileAPI/FileSystemFileHandle.res @@ -1,4 +1,4 @@ -open FileAPI +open FileTypes external asFileSystemHandle: fileSystemFileHandle => fileSystemHandle = "%identity" /** diff --git a/src/FileAPI/FileSystemHandle.res b/src/FileAPI/FileSystemHandle.res index ffae4627..b7ef9dba 100644 --- a/src/FileAPI/FileSystemHandle.res +++ b/src/FileAPI/FileSystemHandle.res @@ -1,4 +1,4 @@ -open FileAPI +open FileTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/isSameEntry) diff --git a/src/FileAPI/FileSystemWritableFileStream.res b/src/FileAPI/FileSystemWritableFileStream.res index 25f8746b..1649612c 100644 --- a/src/FileAPI/FileSystemWritableFileStream.res +++ b/src/FileAPI/FileSystemWritableFileStream.res @@ -1,4 +1,4 @@ -open FileAPI +open FileTypes external asWritableStream: fileSystemWritableFileStream => writableStream<'w> = "%identity" /** diff --git a/src/FileAPI/ReadableStream.res b/src/FileAPI/ReadableStream.res index d06bb068..fdc3421b 100644 --- a/src/FileAPI/ReadableStream.res +++ b/src/FileAPI/ReadableStream.res @@ -1,4 +1,4 @@ -open FileAPI +open FileTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ReadableStream) diff --git a/src/FileAPI/WritableStream.res b/src/FileAPI/WritableStream.res index 413ace65..1826a448 100644 --- a/src/FileAPI/WritableStream.res +++ b/src/FileAPI/WritableStream.res @@ -1,4 +1,4 @@ -open FileAPI +open FileTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/WritableStream) diff --git a/src/FileAPI/WritableStreamDefaultController.res b/src/FileAPI/WritableStreamDefaultController.res index 2c1a784c..1c9264b9 100644 --- a/src/FileAPI/WritableStreamDefaultController.res +++ b/src/FileAPI/WritableStreamDefaultController.res @@ -1,4 +1,4 @@ -open FileAPI +open FileTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error) diff --git a/src/FileAndDirectoryEntriesAPI/FileSystemDirectoryEntry.res b/src/FileAndDirectoryEntriesAPI/FileSystemDirectoryEntry.res index 94474f25..f0bf0afd 100644 --- a/src/FileAndDirectoryEntriesAPI/FileSystemDirectoryEntry.res +++ b/src/FileAndDirectoryEntriesAPI/FileSystemDirectoryEntry.res @@ -1,4 +1,4 @@ -open FileAndDirectoryEntriesAPI +open FileAndDirectoryEntriesTypes external asFileSystemEntry: fileSystemDirectoryEntry => fileSystemEntry = "%identity" /** diff --git a/src/FileAndDirectoryEntriesAPI/FileSystemDirectoryReader.res b/src/FileAndDirectoryEntriesAPI/FileSystemDirectoryReader.res index 65692821..f8efe639 100644 --- a/src/FileAndDirectoryEntriesAPI/FileSystemDirectoryReader.res +++ b/src/FileAndDirectoryEntriesAPI/FileSystemDirectoryReader.res @@ -1,4 +1,4 @@ -open FileAndDirectoryEntriesAPI +open FileAndDirectoryEntriesTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryReader/readEntries) diff --git a/src/FileAndDirectoryEntriesAPI/FileSystemEntry.res b/src/FileAndDirectoryEntriesAPI/FileSystemEntry.res index c7d4a54a..c41f79df 100644 --- a/src/FileAndDirectoryEntriesAPI/FileSystemEntry.res +++ b/src/FileAndDirectoryEntriesAPI/FileSystemEntry.res @@ -1,4 +1,4 @@ -open FileAndDirectoryEntriesAPI +open FileAndDirectoryEntriesTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/getParent) diff --git a/src/FileAndDirectoryEntriesAPI.res b/src/FileAndDirectoryEntriesTypes.res similarity index 100% rename from src/FileAndDirectoryEntriesAPI.res rename to src/FileAndDirectoryEntriesTypes.res diff --git a/src/FileAPI.res b/src/FileTypes.res similarity index 99% rename from src/FileAPI.res rename to src/FileTypes.res index aa2cd7a6..aecb8630 100644 --- a/src/FileAPI.res +++ b/src/FileTypes.res @@ -1,7 +1,7 @@ @@warning("-30") open Prelude -open EventAPI +open EventTypes type endingType = | @as("native") Native diff --git a/src/GamepadAPI/GamepadHapticActuator.res b/src/GamepadAPI/GamepadHapticActuator.res index 35487e5d..9c570a47 100644 --- a/src/GamepadAPI/GamepadHapticActuator.res +++ b/src/GamepadAPI/GamepadHapticActuator.res @@ -1,4 +1,4 @@ -open GamepadAPI +open GamepadTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator/playEffect) diff --git a/src/GamepadAPI.res b/src/GamepadTypes.res similarity index 100% rename from src/GamepadAPI.res rename to src/GamepadTypes.res diff --git a/src/GeolocationAPI/Geolocation.res b/src/GeolocationAPI/Geolocation.res index 3304d9b7..ed514f5a 100644 --- a/src/GeolocationAPI/Geolocation.res +++ b/src/GeolocationAPI/Geolocation.res @@ -1,4 +1,4 @@ -open GeolocationAPI +open GeolocationTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Geolocation/getCurrentPosition) diff --git a/src/GeolocationAPI/GeolocationCoordinates.res b/src/GeolocationAPI/GeolocationCoordinates.res index 81066299..5e561ac5 100644 --- a/src/GeolocationAPI/GeolocationCoordinates.res +++ b/src/GeolocationAPI/GeolocationCoordinates.res @@ -1,4 +1,4 @@ -open GeolocationAPI +open GeolocationTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/toJSON) diff --git a/src/GeolocationAPI/GeolocationPosition.res b/src/GeolocationAPI/GeolocationPosition.res index 6c87e0d4..99a8f748 100644 --- a/src/GeolocationAPI/GeolocationPosition.res +++ b/src/GeolocationAPI/GeolocationPosition.res @@ -1,4 +1,4 @@ -open GeolocationAPI +open GeolocationTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/toJSON) diff --git a/src/GeolocationAPI.res b/src/GeolocationTypes.res similarity index 100% rename from src/GeolocationAPI.res rename to src/GeolocationTypes.res diff --git a/src/Global.res b/src/Global.res index 9ce95455..ba246c1e 100644 --- a/src/Global.res +++ b/src/Global.res @@ -1,17 +1,17 @@ -open DOMAPI -open HistoryAPI -open VisualViewportAPI -open WebSpeechAPI -open IndexedDBAPI -open WebCryptoAPI -open PerformanceAPI -open WebWorkersAPI -open WebStorageAPI -open CanvasAPI -open FileAPI -open ChannelMessagingAPI -open FetchAPI -open EventAPI +open DOMTypes +open HistoryTypes +open VisualViewportTypes +open WebSpeechTypes +open IndexedDBTypes +open WebCryptoTypes +open PerformanceTypes +open WebWorkersTypes +open WebStorageTypes +open CanvasTypes +open FileTypes +open ChannelMessagingTypes +open FetchTypes +open EventTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/window) diff --git a/src/HistoryAPI/History.res b/src/HistoryAPI/History.res index d60faa20..b2e41574 100644 --- a/src/HistoryAPI/History.res +++ b/src/HistoryAPI/History.res @@ -1,4 +1,4 @@ -open HistoryAPI +open HistoryTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/History/go) diff --git a/src/HistoryAPI.res b/src/HistoryTypes.res similarity index 100% rename from src/HistoryAPI.res rename to src/HistoryTypes.res diff --git a/src/IndexedDBAPI/IDBDatabase.res b/src/IndexedDBAPI/IDBDatabase.res index a88eb3cd..675a98ee 100644 --- a/src/IndexedDBAPI/IDBDatabase.res +++ b/src/IndexedDBAPI/IDBDatabase.res @@ -1,4 +1,4 @@ -open IndexedDBAPI +open IndexedDBTypes include EventTarget.Impl({type t = idbDatabase}) diff --git a/src/IndexedDBAPI/IDBFactory.res b/src/IndexedDBAPI/IDBFactory.res index be3da050..1c33ff3e 100644 --- a/src/IndexedDBAPI/IDBFactory.res +++ b/src/IndexedDBAPI/IDBFactory.res @@ -1,4 +1,4 @@ -open IndexedDBAPI +open IndexedDBTypes /** Attempts to open a connection to the named database with the current version, or 1 if it does not already exist. If the request is successful request's result will be the connection. diff --git a/src/IndexedDBAPI/IDBIndex.res b/src/IndexedDBAPI/IDBIndex.res index 4eefef20..d732169c 100644 --- a/src/IndexedDBAPI/IDBIndex.res +++ b/src/IndexedDBAPI/IDBIndex.res @@ -1,4 +1,4 @@ -open IndexedDBAPI +open IndexedDBTypes open Prelude /** diff --git a/src/IndexedDBAPI/IDBObjectStore.res b/src/IndexedDBAPI/IDBObjectStore.res index 79515d89..87d29039 100644 --- a/src/IndexedDBAPI/IDBObjectStore.res +++ b/src/IndexedDBAPI/IDBObjectStore.res @@ -1,4 +1,4 @@ -open IndexedDBAPI +open IndexedDBTypes open Prelude /** diff --git a/src/IndexedDBAPI/IDBTransaction.res b/src/IndexedDBAPI/IDBTransaction.res index cc1bdade..cb159b54 100644 --- a/src/IndexedDBAPI/IDBTransaction.res +++ b/src/IndexedDBAPI/IDBTransaction.res @@ -1,4 +1,4 @@ -open IndexedDBAPI +open IndexedDBTypes include EventTarget.Impl({type t = idbTransaction}) diff --git a/src/IndexedDBAPI.res b/src/IndexedDBTypes.res similarity index 99% rename from src/IndexedDBAPI.res rename to src/IndexedDBTypes.res index bbc58409..0643b326 100644 --- a/src/IndexedDBAPI.res +++ b/src/IndexedDBTypes.res @@ -1,7 +1,7 @@ @@warning("-30") open Prelude -open EventAPI +open EventTypes type idbTransactionMode = | @as("readonly") Readonly diff --git a/src/IntersectionObserverAPI/IntersectionObserver.res b/src/IntersectionObserverAPI/IntersectionObserver.res index 3ed85edd..5f403ae6 100644 --- a/src/IntersectionObserverAPI/IntersectionObserver.res +++ b/src/IntersectionObserverAPI/IntersectionObserver.res @@ -1,5 +1,5 @@ -open DOMAPI -open IntersectionObserverAPI +open DOMTypes +open IntersectionObserverTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/IntersectionObserver) diff --git a/src/IntersectionObserverAPI/IntersectionObserverRoot.res b/src/IntersectionObserverAPI/IntersectionObserverRoot.res index 7bb8c752..f8306ff8 100644 --- a/src/IntersectionObserverAPI/IntersectionObserverRoot.res +++ b/src/IntersectionObserverAPI/IntersectionObserverRoot.res @@ -1,5 +1,5 @@ -open DOMAPI -open IntersectionObserverAPI +open DOMTypes +open IntersectionObserverTypes external fromDocument: document => root = "%identity" external fromElement: element => root = "%identity" diff --git a/src/IntersectionObserverAPI.res b/src/IntersectionObserverTypes.res similarity index 99% rename from src/IntersectionObserverAPI.res rename to src/IntersectionObserverTypes.res index 933c425e..663301c4 100644 --- a/src/IntersectionObserverAPI.res +++ b/src/IntersectionObserverTypes.res @@ -1,6 +1,6 @@ @@warning("-30") -open DOMAPI +open DOMTypes @editor.completeFrom(IntersectionObserverRoot) type root diff --git a/src/MediaCapabilitiesAPI/MediaCapabilities.res b/src/MediaCapabilitiesAPI/MediaCapabilities.res index cb813236..403713e5 100644 --- a/src/MediaCapabilitiesAPI/MediaCapabilities.res +++ b/src/MediaCapabilitiesAPI/MediaCapabilities.res @@ -1,4 +1,4 @@ -open MediaCapabilitiesAPI +open MediaCapabilitiesTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/decodingInfo) diff --git a/src/MediaCapabilitiesAPI.res b/src/MediaCapabilitiesTypes.res similarity index 100% rename from src/MediaCapabilitiesAPI.res rename to src/MediaCapabilitiesTypes.res diff --git a/src/MediaCaptureAndStreamsAPI/MediaDeviceInfo.res b/src/MediaCaptureAndStreamsAPI/MediaDeviceInfo.res index 60cef86d..20e8c03f 100644 --- a/src/MediaCaptureAndStreamsAPI/MediaDeviceInfo.res +++ b/src/MediaCaptureAndStreamsAPI/MediaDeviceInfo.res @@ -1,4 +1,4 @@ -open MediaCaptureAndStreamsAPI +open MediaCaptureAndStreamsTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/toJSON) diff --git a/src/MediaCaptureAndStreamsAPI/MediaDevices.res b/src/MediaCaptureAndStreamsAPI/MediaDevices.res index cb512ea6..743b956d 100644 --- a/src/MediaCaptureAndStreamsAPI/MediaDevices.res +++ b/src/MediaCaptureAndStreamsAPI/MediaDevices.res @@ -1,4 +1,4 @@ -open MediaCaptureAndStreamsAPI +open MediaCaptureAndStreamsTypes include EventTarget.Impl({type t = mediaDevices}) diff --git a/src/MediaCaptureAndStreamsAPI/MediaStream.res b/src/MediaCaptureAndStreamsAPI/MediaStream.res index ba24d8c0..f84c7583 100644 --- a/src/MediaCaptureAndStreamsAPI/MediaStream.res +++ b/src/MediaCaptureAndStreamsAPI/MediaStream.res @@ -1,4 +1,4 @@ -open MediaCaptureAndStreamsAPI +open MediaCaptureAndStreamsTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MediaStream) diff --git a/src/MediaCaptureAndStreamsAPI/MediaStreamTrack.res b/src/MediaCaptureAndStreamsAPI/MediaStreamTrack.res index 4099b981..1424533a 100644 --- a/src/MediaCaptureAndStreamsAPI/MediaStreamTrack.res +++ b/src/MediaCaptureAndStreamsAPI/MediaStreamTrack.res @@ -1,4 +1,4 @@ -open MediaCaptureAndStreamsAPI +open MediaCaptureAndStreamsTypes include EventTarget.Impl({type t = mediaStreamTrack}) diff --git a/src/MediaCaptureAndStreamsAPI.res b/src/MediaCaptureAndStreamsTypes.res similarity index 99% rename from src/MediaCaptureAndStreamsAPI.res rename to src/MediaCaptureAndStreamsTypes.res index bce74a79..9cf0d4a7 100644 --- a/src/MediaCaptureAndStreamsAPI.res +++ b/src/MediaCaptureAndStreamsTypes.res @@ -1,6 +1,6 @@ @@warning("-30") -open EventAPI +open EventTypes type mediaDeviceKind = | @as("audioinput") Audioinput diff --git a/src/MediaSessionAPI/MediaMetadata.res b/src/MediaSessionAPI/MediaMetadata.res index 4d52c18b..b530236a 100644 --- a/src/MediaSessionAPI/MediaMetadata.res +++ b/src/MediaSessionAPI/MediaMetadata.res @@ -1,4 +1,4 @@ -open MediaSessionAPI +open MediaSessionTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MediaMetadata) diff --git a/src/MediaSessionAPI/MediaSession.res b/src/MediaSessionAPI/MediaSession.res index 9caacfdd..59dab74e 100644 --- a/src/MediaSessionAPI/MediaSession.res +++ b/src/MediaSessionAPI/MediaSession.res @@ -1,4 +1,4 @@ -open MediaSessionAPI +open MediaSessionTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MediaSession/setActionHandler) diff --git a/src/MediaSessionAPI.res b/src/MediaSessionTypes.res similarity index 100% rename from src/MediaSessionAPI.res rename to src/MediaSessionTypes.res diff --git a/src/MutationObserverAPI/MutationObserver.res b/src/MutationObserverAPI/MutationObserver.res index 057bd0a3..207de406 100644 --- a/src/MutationObserverAPI/MutationObserver.res +++ b/src/MutationObserverAPI/MutationObserver.res @@ -1,5 +1,5 @@ -open DOMAPI -open MutationObserverAPI +open DOMTypes +open MutationObserverTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MutationObserver) diff --git a/src/MutationObserverAPI.res b/src/MutationObserverTypes.res similarity index 97% rename from src/MutationObserverAPI.res rename to src/MutationObserverTypes.res index b581c8de..7f7b81a1 100644 --- a/src/MutationObserverAPI.res +++ b/src/MutationObserverTypes.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes /** [See MutationObserver on MDN](https://developer.mozilla.org/docs/Web/API/MutationObserver) diff --git a/src/NotificationAPI/Notification.res b/src/NotificationAPI/Notification.res index 6109ce5a..e484b6af 100644 --- a/src/NotificationAPI/Notification.res +++ b/src/NotificationAPI/Notification.res @@ -1,4 +1,4 @@ -open NotificationAPI +open NotificationTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Notification) diff --git a/src/NotificationAPI.res b/src/NotificationTypes.res similarity index 99% rename from src/NotificationAPI.res rename to src/NotificationTypes.res index 9931e96f..ec08fafa 100644 --- a/src/NotificationAPI.res +++ b/src/NotificationTypes.res @@ -1,6 +1,6 @@ @@warning("-30") -open EventAPI +open EventTypes type notificationDirection = | @as("auto") Auto diff --git a/src/PerformanceAPI/Performance.res b/src/PerformanceAPI/Performance.res index a5e70d68..12be7b06 100644 --- a/src/PerformanceAPI/Performance.res +++ b/src/PerformanceAPI/Performance.res @@ -1,4 +1,4 @@ -open PerformanceAPI +open PerformanceTypes include EventTarget.Impl({type t = performance}) diff --git a/src/PerformanceAPI/PerformanceEntry.res b/src/PerformanceAPI/PerformanceEntry.res index 3c9019db..3916f980 100644 --- a/src/PerformanceAPI/PerformanceEntry.res +++ b/src/PerformanceAPI/PerformanceEntry.res @@ -1,4 +1,4 @@ -open PerformanceAPI +open PerformanceTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/toJSON) diff --git a/src/PerformanceAPI/PerformanceMark.res b/src/PerformanceAPI/PerformanceMark.res index 271226f1..dd5d6ac2 100644 --- a/src/PerformanceAPI/PerformanceMark.res +++ b/src/PerformanceAPI/PerformanceMark.res @@ -1,4 +1,4 @@ -open PerformanceAPI +open PerformanceTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/PerformanceMark) diff --git a/src/PerformanceAPI.res b/src/PerformanceTypes.res similarity index 99% rename from src/PerformanceAPI.res rename to src/PerformanceTypes.res index f942b9d0..aa2b055f 100644 --- a/src/PerformanceAPI.res +++ b/src/PerformanceTypes.res @@ -1,7 +1,7 @@ @@warning("-30") open Prelude -open EventAPI +open EventTypes /** [See EventCounts on MDN](https://developer.mozilla.org/docs/Web/API/EventCounts) diff --git a/src/PermissionsAPI/Permissions.res b/src/PermissionsAPI/Permissions.res index b5f0c53e..33fdfe99 100644 --- a/src/PermissionsAPI/Permissions.res +++ b/src/PermissionsAPI/Permissions.res @@ -1,4 +1,4 @@ -open PermissionsAPI +open PermissionsTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Permissions/query) diff --git a/src/PermissionsAPI.res b/src/PermissionsTypes.res similarity index 98% rename from src/PermissionsAPI.res rename to src/PermissionsTypes.res index 499d00e3..7b86f53f 100644 --- a/src/PermissionsAPI.res +++ b/src/PermissionsTypes.res @@ -1,6 +1,6 @@ @@warning("-30") -open EventAPI +open EventTypes type permissionName = | @as("geolocation") Geolocation diff --git a/src/PictureInPictureAPI.res b/src/PictureInPictureTypes.res similarity index 96% rename from src/PictureInPictureAPI.res rename to src/PictureInPictureTypes.res index 416a365d..1c5b0b62 100644 --- a/src/PictureInPictureAPI.res +++ b/src/PictureInPictureTypes.res @@ -1,6 +1,6 @@ @@warning("-30") -open EventAPI +open EventTypes /** [See PictureInPictureWindow on MDN](https://developer.mozilla.org/docs/Web/API/PictureInPictureWindow) diff --git a/src/PushAPI/ApplicationServerKey.res b/src/PushAPI/ApplicationServerKey.res index 78cfd95d..ab3e0818 100644 --- a/src/PushAPI/ApplicationServerKey.res +++ b/src/PushAPI/ApplicationServerKey.res @@ -1,4 +1,4 @@ -open PushAPI +open PushTypes external fromString: string => applicationServerKey = "%identity" external fromUint8Array: Uint8Array.t => applicationServerKey = "%identity" diff --git a/src/PushAPI/PushEvent.res b/src/PushAPI/PushEvent.res index 4761290f..c7c0c576 100644 --- a/src/PushAPI/PushEvent.res +++ b/src/PushAPI/PushEvent.res @@ -1,3 +1,3 @@ -open PushAPI +open PushTypes include ExtendableEvent.Impl({type t = pushEvent}) diff --git a/src/PushAPI/PushManager.res b/src/PushAPI/PushManager.res index 7e2e445f..6dfca511 100644 --- a/src/PushAPI/PushManager.res +++ b/src/PushAPI/PushManager.res @@ -1,4 +1,4 @@ -open PushAPI +open PushTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/PushManager/subscribe) diff --git a/src/PushAPI/PushMessageData.res b/src/PushAPI/PushMessageData.res index 230f92b0..f16a4da2 100644 --- a/src/PushAPI/PushMessageData.res +++ b/src/PushAPI/PushMessageData.res @@ -1,4 +1,4 @@ -open PushAPI +open PushTypes /** The json() method of the PushMessageData interface extracts push message data by parsing it as a JSON string and returning the result. diff --git a/src/PushAPI/PushSubscription.res b/src/PushAPI/PushSubscription.res index 79b98b27..9d5a5c97 100644 --- a/src/PushAPI/PushSubscription.res +++ b/src/PushAPI/PushSubscription.res @@ -1,4 +1,4 @@ -open PushAPI +open PushTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/PushSubscription/getKey) diff --git a/src/PushAPI.res b/src/PushTypes.res similarity index 99% rename from src/PushAPI.res rename to src/PushTypes.res index d183b957..d0a3c316 100644 --- a/src/PushAPI.res +++ b/src/PushTypes.res @@ -1,6 +1,6 @@ @@warning("-30") -open EventAPI +open EventTypes type permissionState = | @as("denied") Denied diff --git a/src/RemotePlaybackAPI/RemotePlayback.res b/src/RemotePlaybackAPI/RemotePlayback.res index e2b2da16..d0ec088e 100644 --- a/src/RemotePlaybackAPI/RemotePlayback.res +++ b/src/RemotePlaybackAPI/RemotePlayback.res @@ -1,4 +1,4 @@ -open RemotePlaybackAPI +open RemotePlaybackTypes include EventTarget.Impl({type t = remotePlayback}) diff --git a/src/RemotePlaybackAPI.res b/src/RemotePlaybackTypes.res similarity index 96% rename from src/RemotePlaybackAPI.res rename to src/RemotePlaybackTypes.res index 6c0ff223..8e7009c5 100644 --- a/src/RemotePlaybackAPI.res +++ b/src/RemotePlaybackTypes.res @@ -1,6 +1,6 @@ @@warning("-30") -open EventAPI +open EventTypes type remotePlaybackState = | @as("connected") Connected diff --git a/src/ResizeObserverAPI/ResizeObserver.res b/src/ResizeObserverAPI/ResizeObserver.res index 9b9a64c6..0ab126af 100644 --- a/src/ResizeObserverAPI/ResizeObserver.res +++ b/src/ResizeObserverAPI/ResizeObserver.res @@ -1,5 +1,5 @@ -open DOMAPI -open ResizeObserverAPI +open DOMTypes +open ResizeObserverTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ResizeObserver) diff --git a/src/ResizeObserverAPI.res b/src/ResizeObserverTypes.res similarity index 99% rename from src/ResizeObserverAPI.res rename to src/ResizeObserverTypes.res index 119f3fea..9ef041af 100644 --- a/src/ResizeObserverAPI.res +++ b/src/ResizeObserverTypes.res @@ -1,6 +1,6 @@ @@warning("-30") -open DOMAPI +open DOMTypes type resizeObserverBoxOptions = | @as("border-box") BorderBox diff --git a/src/ScreenWakeLockAPI/WakeLock.res b/src/ScreenWakeLockAPI/WakeLock.res index 652ac929..c7750cde 100644 --- a/src/ScreenWakeLockAPI/WakeLock.res +++ b/src/ScreenWakeLockAPI/WakeLock.res @@ -1,4 +1,4 @@ -open ScreenWakeLockAPI +open ScreenWakeLockTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/WakeLock/request) diff --git a/src/ScreenWakeLockAPI/WakeLockSentinel.res b/src/ScreenWakeLockAPI/WakeLockSentinel.res index c407c7b5..dcbd76a8 100644 --- a/src/ScreenWakeLockAPI/WakeLockSentinel.res +++ b/src/ScreenWakeLockAPI/WakeLockSentinel.res @@ -1,4 +1,4 @@ -open ScreenWakeLockAPI +open ScreenWakeLockTypes include EventTarget.Impl({type t = wakeLockSentinel}) diff --git a/src/ScreenWakeLockAPI.res b/src/ScreenWakeLockTypes.res similarity index 97% rename from src/ScreenWakeLockAPI.res rename to src/ScreenWakeLockTypes.res index 2eadecbc..cbb00b7f 100644 --- a/src/ScreenWakeLockAPI.res +++ b/src/ScreenWakeLockTypes.res @@ -1,6 +1,6 @@ @@warning("-30") -open EventAPI +open EventTypes type wakeLockType = | @as("screen") Screen diff --git a/src/ServiceWorkerAPI/Cache.res b/src/ServiceWorkerAPI/Cache.res index 95e5aa52..dee2fe00 100644 --- a/src/ServiceWorkerAPI/Cache.res +++ b/src/ServiceWorkerAPI/Cache.res @@ -1,5 +1,5 @@ -open FetchAPI -open WebWorkersAPI +open FetchTypes +open WebWorkersTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Cache/match) diff --git a/src/ServiceWorkerAPI/Clients.res b/src/ServiceWorkerAPI/Clients.res index c9028cc6..c2f83b71 100644 --- a/src/ServiceWorkerAPI/Clients.res +++ b/src/ServiceWorkerAPI/Clients.res @@ -1,4 +1,4 @@ -open ServiceWorkerAPI +open ServiceWorkerTypes type clientQueryOptions = { mutable includeUncontrolled?: bool, diff --git a/src/ServiceWorkerAPI/NavigationPreloadManager.res b/src/ServiceWorkerAPI/NavigationPreloadManager.res index 6bdb712b..aa1b85ab 100644 --- a/src/ServiceWorkerAPI/NavigationPreloadManager.res +++ b/src/ServiceWorkerAPI/NavigationPreloadManager.res @@ -1,4 +1,4 @@ -open ServiceWorkerAPI +open ServiceWorkerTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/enable) diff --git a/src/ServiceWorkerAPI/ServiceWorker.res b/src/ServiceWorkerAPI/ServiceWorker.res index a5bc1945..78ea9dbc 100644 --- a/src/ServiceWorkerAPI/ServiceWorker.res +++ b/src/ServiceWorkerAPI/ServiceWorker.res @@ -1,5 +1,5 @@ -open ServiceWorkerAPI -open ChannelMessagingAPI +open ServiceWorkerTypes +open ChannelMessagingTypes include EventTarget.Impl({type t = serviceWorker}) diff --git a/src/ServiceWorkerAPI/ServiceWorkerContainer.res b/src/ServiceWorkerAPI/ServiceWorkerContainer.res index 5756f5b1..cc4a0bc5 100644 --- a/src/ServiceWorkerAPI/ServiceWorkerContainer.res +++ b/src/ServiceWorkerAPI/ServiceWorkerContainer.res @@ -1,4 +1,4 @@ -open ServiceWorkerAPI +open ServiceWorkerTypes include EventTarget.Impl({type t = serviceWorkerContainer}) diff --git a/src/ServiceWorkerAPI/ServiceWorkerGlobalScope.res b/src/ServiceWorkerAPI/ServiceWorkerGlobalScope.res index 54e166a3..94b8a457 100644 --- a/src/ServiceWorkerAPI/ServiceWorkerGlobalScope.res +++ b/src/ServiceWorkerAPI/ServiceWorkerGlobalScope.res @@ -1,4 +1,4 @@ -open ServiceWorkerAPI +open ServiceWorkerTypes include WorkerGlobalScope.Impl({type t = serviceWorkerGlobalScope}) diff --git a/src/ServiceWorkerAPI/ServiceWorkerRegistration.res b/src/ServiceWorkerAPI/ServiceWorkerRegistration.res index 89014f78..2c986730 100644 --- a/src/ServiceWorkerAPI/ServiceWorkerRegistration.res +++ b/src/ServiceWorkerAPI/ServiceWorkerRegistration.res @@ -1,5 +1,5 @@ -open ServiceWorkerAPI -open NotificationAPI +open ServiceWorkerTypes +open NotificationTypes include EventTarget.Impl({type t = serviceWorkerRegistration}) diff --git a/src/ServiceWorkerAPI.res b/src/ServiceWorkerTypes.res similarity index 99% rename from src/ServiceWorkerAPI.res rename to src/ServiceWorkerTypes.res index af1e5a83..11fd02ca 100644 --- a/src/ServiceWorkerAPI.res +++ b/src/ServiceWorkerTypes.res @@ -1,9 +1,9 @@ @@warning("-30") open Prelude -open EventAPI -open PushAPI -open WebWorkersAPI +open EventTypes +open PushTypes +open WebWorkersTypes type serviceWorkerState = | @as("activated") Activated diff --git a/src/StorageAPI/StorageManager.res b/src/StorageAPI/StorageManager.res index b7ffd61a..1666a852 100644 --- a/src/StorageAPI/StorageManager.res +++ b/src/StorageAPI/StorageManager.res @@ -1,5 +1,5 @@ -open StorageAPI -open FileAPI +open StorageTypes +open FileTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/StorageManager/persisted) diff --git a/src/StorageAPI.res b/src/StorageTypes.res similarity index 100% rename from src/StorageAPI.res rename to src/StorageTypes.res diff --git a/src/UIEventsAPI/CompositionEvent.res b/src/UIEventsAPI/CompositionEvent.res index 1b40ce50..65315f23 100644 --- a/src/UIEventsAPI/CompositionEvent.res +++ b/src/UIEventsAPI/CompositionEvent.res @@ -1,4 +1,4 @@ -open UIEventsAPI +open UIEventsTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CompositionEvent) diff --git a/src/UIEventsAPI/DataTransfer.res b/src/UIEventsAPI/DataTransfer.res index 54be57fd..8ff834dc 100644 --- a/src/UIEventsAPI/DataTransfer.res +++ b/src/UIEventsAPI/DataTransfer.res @@ -1,5 +1,5 @@ -open UIEventsAPI -open DOMAPI +open UIEventsTypes +open DOMTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DataTransfer) diff --git a/src/UIEventsAPI/DataTransferItem.res b/src/UIEventsAPI/DataTransferItem.res index fcce6e94..4948d1c2 100644 --- a/src/UIEventsAPI/DataTransferItem.res +++ b/src/UIEventsAPI/DataTransferItem.res @@ -1,6 +1,6 @@ -open UIEventsAPI -open FileAPI -open FileAndDirectoryEntriesAPI +open UIEventsTypes +open FileTypes +open FileAndDirectoryEntriesTypes /** Invokes the callback with the string data as the argument, if the drag data item kind is text. diff --git a/src/UIEventsAPI/DataTransferItemList.res b/src/UIEventsAPI/DataTransferItemList.res index 1b2c7ebc..786a7674 100644 --- a/src/UIEventsAPI/DataTransferItemList.res +++ b/src/UIEventsAPI/DataTransferItemList.res @@ -1,5 +1,5 @@ -open UIEventsAPI -open FileAPI +open UIEventsTypes +open FileTypes /** Adds a new entry for the given data to the drag data store. If the data is plain text then a type string has to be provided also. diff --git a/src/UIEventsAPI/FocusEvent.res b/src/UIEventsAPI/FocusEvent.res index f95b1b9c..26fa2fc9 100644 --- a/src/UIEventsAPI/FocusEvent.res +++ b/src/UIEventsAPI/FocusEvent.res @@ -1,4 +1,4 @@ -open UIEventsAPI +open UIEventsTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FocusEvent) diff --git a/src/UIEventsAPI/InputEvent.res b/src/UIEventsAPI/InputEvent.res index 99e89f34..ec522566 100644 --- a/src/UIEventsAPI/InputEvent.res +++ b/src/UIEventsAPI/InputEvent.res @@ -1,5 +1,5 @@ -open UIEventsAPI -open DOMAPI +open UIEventsTypes +open DOMTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/InputEvent) diff --git a/src/UIEventsAPI/KeyboardEvent.res b/src/UIEventsAPI/KeyboardEvent.res index 3f08ace9..36c071c1 100644 --- a/src/UIEventsAPI/KeyboardEvent.res +++ b/src/UIEventsAPI/KeyboardEvent.res @@ -1,4 +1,4 @@ -open UIEventsAPI +open UIEventsTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/KeyboardEvent) diff --git a/src/UIEventsAPI/MouseEvent.res b/src/UIEventsAPI/MouseEvent.res index 342092b6..d8fb714a 100644 --- a/src/UIEventsAPI/MouseEvent.res +++ b/src/UIEventsAPI/MouseEvent.res @@ -1,4 +1,4 @@ -open UIEventsAPI +open UIEventsTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MouseEvent) diff --git a/src/UIEventsAPI/PointerEvent.res b/src/UIEventsAPI/PointerEvent.res index 95770f4b..91d10b3c 100644 --- a/src/UIEventsAPI/PointerEvent.res +++ b/src/UIEventsAPI/PointerEvent.res @@ -1,4 +1,4 @@ -open UIEventsAPI +open UIEventsTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/PointerEvent) diff --git a/src/UIEventsAPI/Touch.res b/src/UIEventsAPI/Touch.res index 4b75f5e2..4e7627cc 100644 --- a/src/UIEventsAPI/Touch.res +++ b/src/UIEventsAPI/Touch.res @@ -1,4 +1,4 @@ -open UIEventsAPI +open UIEventsTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Touch) diff --git a/src/UIEventsAPI/TouchEvent.res b/src/UIEventsAPI/TouchEvent.res index 661202d2..be40c70a 100644 --- a/src/UIEventsAPI/TouchEvent.res +++ b/src/UIEventsAPI/TouchEvent.res @@ -1,4 +1,4 @@ -open UIEventsAPI +open UIEventsTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/TouchEvent) diff --git a/src/UIEventsAPI/TouchList.res b/src/UIEventsAPI/TouchList.res index 318da923..03bc9ad4 100644 --- a/src/UIEventsAPI/TouchList.res +++ b/src/UIEventsAPI/TouchList.res @@ -1,4 +1,4 @@ -open UIEventsAPI +open UIEventsTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/TouchList/item) diff --git a/src/UIEventsAPI/UIEvent.res b/src/UIEventsAPI/UIEvent.res index e57940ad..58a0628b 100644 --- a/src/UIEventsAPI/UIEvent.res +++ b/src/UIEventsAPI/UIEvent.res @@ -1,4 +1,4 @@ -open UIEventsAPI +open UIEventsTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/UIEvent) diff --git a/src/UIEventsAPI/WheelEvent.res b/src/UIEventsAPI/WheelEvent.res index 2ca47e46..4534ecdf 100644 --- a/src/UIEventsAPI/WheelEvent.res +++ b/src/UIEventsAPI/WheelEvent.res @@ -1,4 +1,4 @@ -open UIEventsAPI +open UIEventsTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/WheelEvent) diff --git a/src/UIEventsAPI.res b/src/UIEventsTypes.res similarity index 99% rename from src/UIEventsAPI.res rename to src/UIEventsTypes.res index 4d3138b8..c36446bb 100644 --- a/src/UIEventsAPI.res +++ b/src/UIEventsTypes.res @@ -1,7 +1,7 @@ @@warning("-30") -open EventAPI -open DOMAPI +open EventTypes +open DOMTypes type touchType = | @as("direct") Direct diff --git a/src/URLAPI/URL.res b/src/URLAPI/URL.res index 3e56df9d..0b885586 100644 --- a/src/URLAPI/URL.res +++ b/src/URLAPI/URL.res @@ -1,4 +1,4 @@ -open URLAPI +open URLTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/URL) diff --git a/src/URLAPI/URLSearchParams.res b/src/URLAPI/URLSearchParams.res index b229d060..d36f5163 100644 --- a/src/URLAPI/URLSearchParams.res +++ b/src/URLAPI/URLSearchParams.res @@ -1,4 +1,4 @@ -open URLAPI +open URLTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/URLSearchParams) diff --git a/src/URLAPI.res b/src/URLTypes.res similarity index 100% rename from src/URLAPI.res rename to src/URLTypes.res diff --git a/src/ViewTransitionsAPI/ViewTransition.res b/src/ViewTransitionsAPI/ViewTransition.res index 9d982621..9d7d387d 100644 --- a/src/ViewTransitionsAPI/ViewTransition.res +++ b/src/ViewTransitionsAPI/ViewTransition.res @@ -1,4 +1,4 @@ -open ViewTransitionsAPI +open ViewTransitionsTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ViewTransition/skipTransition) diff --git a/src/ViewTransitionsAPI.res b/src/ViewTransitionsTypes.res similarity index 100% rename from src/ViewTransitionsAPI.res rename to src/ViewTransitionsTypes.res diff --git a/src/VisualViewportAPI.res b/src/VisualViewportTypes.res similarity index 98% rename from src/VisualViewportAPI.res rename to src/VisualViewportTypes.res index 3e57c265..4947abb0 100644 --- a/src/VisualViewportAPI.res +++ b/src/VisualViewportTypes.res @@ -1,6 +1,6 @@ @@warning("-30") -open EventAPI +open EventTypes /** [See VisualViewport on MDN](https://developer.mozilla.org/docs/Web/API/VisualViewport) diff --git a/src/WebAudioAPI/AnalyserNode.res b/src/WebAudioAPI/AnalyserNode.res index 62bab9e6..b4d000df 100644 --- a/src/WebAudioAPI/AnalyserNode.res +++ b/src/WebAudioAPI/AnalyserNode.res @@ -1,4 +1,4 @@ -open WebAudioAPI +open WebAudioTypes include AudioNode.Impl({type t = analyserNode}) diff --git a/src/WebAudioAPI/AudioBuffer.res b/src/WebAudioAPI/AudioBuffer.res index 20011ba3..809a5cad 100644 --- a/src/WebAudioAPI/AudioBuffer.res +++ b/src/WebAudioAPI/AudioBuffer.res @@ -1,4 +1,4 @@ -open WebAudioAPI +open WebAudioTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioBuffer) diff --git a/src/WebAudioAPI/AudioBufferSourceNode.res b/src/WebAudioAPI/AudioBufferSourceNode.res index 7119acb4..bb54743b 100644 --- a/src/WebAudioAPI/AudioBufferSourceNode.res +++ b/src/WebAudioAPI/AudioBufferSourceNode.res @@ -1,4 +1,4 @@ -open WebAudioAPI +open WebAudioTypes include AudioScheduledSourceNode.Impl({type t = audioBufferSourceNode}) diff --git a/src/WebAudioAPI/AudioContext.res b/src/WebAudioAPI/AudioContext.res index 3a966c16..ad918096 100644 --- a/src/WebAudioAPI/AudioContext.res +++ b/src/WebAudioAPI/AudioContext.res @@ -1,6 +1,6 @@ -open WebAudioAPI -open DOMAPI -open MediaCaptureAndStreamsAPI +open WebAudioTypes +open DOMTypes +open MediaCaptureAndStreamsTypes include BaseAudioContext.Impl({type t = audioContext}) diff --git a/src/WebAudioAPI/AudioDestinationNode.res b/src/WebAudioAPI/AudioDestinationNode.res index 54cf27ca..debcc1aa 100644 --- a/src/WebAudioAPI/AudioDestinationNode.res +++ b/src/WebAudioAPI/AudioDestinationNode.res @@ -1,3 +1,3 @@ -open WebAudioAPI +open WebAudioTypes include AudioNode.Impl({type t = audioDestinationNode}) diff --git a/src/WebAudioAPI/AudioNode.res b/src/WebAudioAPI/AudioNode.res index 2b244a15..b984bce6 100644 --- a/src/WebAudioAPI/AudioNode.res +++ b/src/WebAudioAPI/AudioNode.res @@ -1,4 +1,4 @@ -open WebAudioAPI +open WebAudioTypes module Impl = ( T: { diff --git a/src/WebAudioAPI/AudioParam.res b/src/WebAudioAPI/AudioParam.res index dddf911c..454d80a1 100644 --- a/src/WebAudioAPI/AudioParam.res +++ b/src/WebAudioAPI/AudioParam.res @@ -1,4 +1,4 @@ -open WebAudioAPI +open WebAudioTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueAtTime) diff --git a/src/WebAudioAPI/AudioProcessingEvent.res b/src/WebAudioAPI/AudioProcessingEvent.res index 16be9c9d..911b8535 100644 --- a/src/WebAudioAPI/AudioProcessingEvent.res +++ b/src/WebAudioAPI/AudioProcessingEvent.res @@ -1,4 +1,4 @@ -open WebAudioAPI +open WebAudioTypes include Event.Impl({type t = audioProcessingEvent}) diff --git a/src/WebAudioAPI/AudioScheduledSourceNode.res b/src/WebAudioAPI/AudioScheduledSourceNode.res index f7bcc5a4..4b77c787 100644 --- a/src/WebAudioAPI/AudioScheduledSourceNode.res +++ b/src/WebAudioAPI/AudioScheduledSourceNode.res @@ -1,4 +1,4 @@ -open WebAudioAPI +open WebAudioTypes module Impl = ( T: { diff --git a/src/WebAudioAPI/AudioWorkletNode.res b/src/WebAudioAPI/AudioWorkletNode.res index f7880b0a..8b6e1106 100644 --- a/src/WebAudioAPI/AudioWorkletNode.res +++ b/src/WebAudioAPI/AudioWorkletNode.res @@ -1,4 +1,4 @@ -open WebAudioAPI +open WebAudioTypes include AudioNode.Impl({type t = audioWorkletNode}) diff --git a/src/WebAudioAPI/BaseAudioContext.res b/src/WebAudioAPI/BaseAudioContext.res index 01596be7..6d5c7b75 100644 --- a/src/WebAudioAPI/BaseAudioContext.res +++ b/src/WebAudioAPI/BaseAudioContext.res @@ -1,4 +1,4 @@ -open WebAudioAPI +open WebAudioTypes module Impl = ( T: { diff --git a/src/WebAudioAPI/BiquadFilterNode.res b/src/WebAudioAPI/BiquadFilterNode.res index 7dba3482..a124c921 100644 --- a/src/WebAudioAPI/BiquadFilterNode.res +++ b/src/WebAudioAPI/BiquadFilterNode.res @@ -1,4 +1,4 @@ -open WebAudioAPI +open WebAudioTypes include AudioNode.Impl({type t = biquadFilterNode}) diff --git a/src/WebAudioAPI/ChannelMergerNode.res b/src/WebAudioAPI/ChannelMergerNode.res index cecdbeab..7b963fb2 100644 --- a/src/WebAudioAPI/ChannelMergerNode.res +++ b/src/WebAudioAPI/ChannelMergerNode.res @@ -1,4 +1,4 @@ -open WebAudioAPI +open WebAudioTypes include AudioNode.Impl({type t = channelMergerNode}) diff --git a/src/WebAudioAPI/ChannelSplitterNode.res b/src/WebAudioAPI/ChannelSplitterNode.res index b918857a..97c7a555 100644 --- a/src/WebAudioAPI/ChannelSplitterNode.res +++ b/src/WebAudioAPI/ChannelSplitterNode.res @@ -1,4 +1,4 @@ -open WebAudioAPI +open WebAudioTypes include AudioNode.Impl({type t = channelSplitterNode}) diff --git a/src/WebAudioAPI/ConstantSourceNode.res b/src/WebAudioAPI/ConstantSourceNode.res index f65dfc81..b00545df 100644 --- a/src/WebAudioAPI/ConstantSourceNode.res +++ b/src/WebAudioAPI/ConstantSourceNode.res @@ -1,4 +1,4 @@ -open WebAudioAPI +open WebAudioTypes include AudioScheduledSourceNode.Impl({type t = constantSourceNode}) diff --git a/src/WebAudioAPI/ConvolverNode.res b/src/WebAudioAPI/ConvolverNode.res index b109aaec..68ea9bb0 100644 --- a/src/WebAudioAPI/ConvolverNode.res +++ b/src/WebAudioAPI/ConvolverNode.res @@ -1,4 +1,4 @@ -open WebAudioAPI +open WebAudioTypes include AudioNode.Impl({type t = convolverNode}) diff --git a/src/WebAudioAPI/DelayNode.res b/src/WebAudioAPI/DelayNode.res index eeb13bc2..7aaffa5f 100644 --- a/src/WebAudioAPI/DelayNode.res +++ b/src/WebAudioAPI/DelayNode.res @@ -1,4 +1,4 @@ -open WebAudioAPI +open WebAudioTypes include AudioNode.Impl({type t = delayNode}) diff --git a/src/WebAudioAPI/DynamicsCompressorNode.res b/src/WebAudioAPI/DynamicsCompressorNode.res index 91397422..d30b3e1f 100644 --- a/src/WebAudioAPI/DynamicsCompressorNode.res +++ b/src/WebAudioAPI/DynamicsCompressorNode.res @@ -1,4 +1,4 @@ -open WebAudioAPI +open WebAudioTypes include AudioNode.Impl({type t = dynamicsCompressorNode}) diff --git a/src/WebAudioAPI/GainNode.res b/src/WebAudioAPI/GainNode.res index d13b2294..e37e66b4 100644 --- a/src/WebAudioAPI/GainNode.res +++ b/src/WebAudioAPI/GainNode.res @@ -1,4 +1,4 @@ -open WebAudioAPI +open WebAudioTypes include AudioNode.Impl({type t = gainNode}) diff --git a/src/WebAudioAPI/IIRFilterNode.res b/src/WebAudioAPI/IIRFilterNode.res index e21cbd6b..8fefb5a0 100644 --- a/src/WebAudioAPI/IIRFilterNode.res +++ b/src/WebAudioAPI/IIRFilterNode.res @@ -1,4 +1,4 @@ -open WebAudioAPI +open WebAudioTypes include AudioNode.Impl({type t = iirFilterNode}) diff --git a/src/WebAudioAPI/MediaElementAudioSourceNode.res b/src/WebAudioAPI/MediaElementAudioSourceNode.res index 328da10f..c1b3cd4f 100644 --- a/src/WebAudioAPI/MediaElementAudioSourceNode.res +++ b/src/WebAudioAPI/MediaElementAudioSourceNode.res @@ -1,4 +1,4 @@ -open WebAudioAPI +open WebAudioTypes include AudioNode.Impl({type t = mediaElementAudioSourceNode}) diff --git a/src/WebAudioAPI/MediaStreamAudioDestinationNode.res b/src/WebAudioAPI/MediaStreamAudioDestinationNode.res index ca07cc68..8774b071 100644 --- a/src/WebAudioAPI/MediaStreamAudioDestinationNode.res +++ b/src/WebAudioAPI/MediaStreamAudioDestinationNode.res @@ -1,4 +1,4 @@ -open WebAudioAPI +open WebAudioTypes include AudioNode.Impl({type t = mediaStreamAudioDestinationNode}) diff --git a/src/WebAudioAPI/MediaStreamAudioSourceNode.res b/src/WebAudioAPI/MediaStreamAudioSourceNode.res index a07ac418..b63b54d5 100644 --- a/src/WebAudioAPI/MediaStreamAudioSourceNode.res +++ b/src/WebAudioAPI/MediaStreamAudioSourceNode.res @@ -1,4 +1,4 @@ -open WebAudioAPI +open WebAudioTypes include AudioNode.Impl({type t = mediaStreamAudioSourceNode}) diff --git a/src/WebAudioAPI/OfflineAudioCompletionEvent.res b/src/WebAudioAPI/OfflineAudioCompletionEvent.res index 9352f7ed..ec54a23b 100644 --- a/src/WebAudioAPI/OfflineAudioCompletionEvent.res +++ b/src/WebAudioAPI/OfflineAudioCompletionEvent.res @@ -1,4 +1,4 @@ -open WebAudioAPI +open WebAudioTypes include Event.Impl({type t = offlineAudioCompletionEvent}) diff --git a/src/WebAudioAPI/OfflineAudioContext.res b/src/WebAudioAPI/OfflineAudioContext.res index 0de646fd..5d52884c 100644 --- a/src/WebAudioAPI/OfflineAudioContext.res +++ b/src/WebAudioAPI/OfflineAudioContext.res @@ -1,4 +1,4 @@ -open WebAudioAPI +open WebAudioTypes include BaseAudioContext.Impl({type t = offlineAudioContext}) diff --git a/src/WebAudioAPI/OscillatorNode.res b/src/WebAudioAPI/OscillatorNode.res index 75df783c..d75e9836 100644 --- a/src/WebAudioAPI/OscillatorNode.res +++ b/src/WebAudioAPI/OscillatorNode.res @@ -1,4 +1,4 @@ -open WebAudioAPI +open WebAudioTypes include AudioScheduledSourceNode.Impl({type t = oscillatorNode}) diff --git a/src/WebAudioAPI/PannerNode.res b/src/WebAudioAPI/PannerNode.res index ba9e5c02..4b4e1b06 100644 --- a/src/WebAudioAPI/PannerNode.res +++ b/src/WebAudioAPI/PannerNode.res @@ -1,4 +1,4 @@ -open WebAudioAPI +open WebAudioTypes include AudioNode.Impl({type t = pannerNode}) diff --git a/src/WebAudioAPI/PeriodicWave.res b/src/WebAudioAPI/PeriodicWave.res index d88a4776..7121487f 100644 --- a/src/WebAudioAPI/PeriodicWave.res +++ b/src/WebAudioAPI/PeriodicWave.res @@ -1,4 +1,4 @@ -open WebAudioAPI +open WebAudioTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/PeriodicWave) diff --git a/src/WebAudioAPI/StereoPannerNode.res b/src/WebAudioAPI/StereoPannerNode.res index f7a6ade2..3256b5a4 100644 --- a/src/WebAudioAPI/StereoPannerNode.res +++ b/src/WebAudioAPI/StereoPannerNode.res @@ -1,4 +1,4 @@ -open WebAudioAPI +open WebAudioTypes include AudioNode.Impl({type t = stereoPannerNode}) diff --git a/src/WebAudioAPI/WaveShaperNode.res b/src/WebAudioAPI/WaveShaperNode.res index 9832988f..22341f9e 100644 --- a/src/WebAudioAPI/WaveShaperNode.res +++ b/src/WebAudioAPI/WaveShaperNode.res @@ -1,4 +1,4 @@ -open WebAudioAPI +open WebAudioTypes include AudioNode.Impl({type t = waveShaperNode}) diff --git a/src/WebAudioAPI/Worklet.res b/src/WebAudioAPI/Worklet.res index 9c620c90..025450db 100644 --- a/src/WebAudioAPI/Worklet.res +++ b/src/WebAudioAPI/Worklet.res @@ -1,4 +1,4 @@ -open WebAudioAPI +open WebAudioTypes /** Loads and executes the module script given by moduleURL into all of worklet's global scopes. It can also create additional global scopes as part of this process, depending on the worklet type. The returned promise will fulfill once the script has been successfully loaded and run in all global scopes. diff --git a/src/WebAudioAPI.res b/src/WebAudioTypes.res similarity index 99% rename from src/WebAudioAPI.res rename to src/WebAudioTypes.res index 8fe75a9d..353285b0 100644 --- a/src/WebAudioAPI.res +++ b/src/WebAudioTypes.res @@ -1,10 +1,10 @@ @@warning("-30") open Prelude -open ChannelMessagingAPI -open EventAPI -open DOMAPI -open MediaCaptureAndStreamsAPI +open ChannelMessagingTypes +open EventTypes +open DOMTypes +open MediaCaptureAndStreamsTypes type audioContextState = | @as("closed") Closed diff --git a/src/WebCryptoAPI/Crypto.res b/src/WebCryptoAPI/Crypto.res index 25bbb8ee..1f19fa52 100644 --- a/src/WebCryptoAPI/Crypto.res +++ b/src/WebCryptoAPI/Crypto.res @@ -1,4 +1,4 @@ -open WebCryptoAPI +open WebCryptoTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues) diff --git a/src/WebCryptoAPI/SubtleCrypto.res b/src/WebCryptoAPI/SubtleCrypto.res index 6cd6fac0..0f85becd 100644 --- a/src/WebCryptoAPI/SubtleCrypto.res +++ b/src/WebCryptoAPI/SubtleCrypto.res @@ -1,4 +1,4 @@ -open WebCryptoAPI +open WebCryptoTypes open Prelude /** diff --git a/src/WebCryptoAPI.res b/src/WebCryptoTypes.res similarity index 100% rename from src/WebCryptoAPI.res rename to src/WebCryptoTypes.res diff --git a/src/WebLocksAPI/LockManager.res b/src/WebLocksAPI/LockManager.res index 7700bc25..e37badc4 100644 --- a/src/WebLocksAPI/LockManager.res +++ b/src/WebLocksAPI/LockManager.res @@ -1,4 +1,4 @@ -open WebLocksAPI +open WebLocksTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/LockManager/request) diff --git a/src/WebLocksAPI.res b/src/WebLocksTypes.res similarity index 98% rename from src/WebLocksAPI.res rename to src/WebLocksTypes.res index 49732cf8..3982eb62 100644 --- a/src/WebLocksAPI.res +++ b/src/WebLocksTypes.res @@ -1,6 +1,6 @@ @@warning("-30") -open EventAPI +open EventTypes type lockMode = | @as("exclusive") Exclusive diff --git a/src/WebMIDIAPI.res b/src/WebMIDITypes.res similarity index 98% rename from src/WebMIDIAPI.res rename to src/WebMIDITypes.res index 0c7da13f..c8c884e2 100644 --- a/src/WebMIDIAPI.res +++ b/src/WebMIDITypes.res @@ -1,6 +1,6 @@ @@warning("-30") -open EventAPI +open EventTypes /** [See MIDIInputMap on MDN](https://developer.mozilla.org/docs/Web/API/MIDIInputMap) diff --git a/src/WebSocketsAPI/CloseEvent.res b/src/WebSocketsAPI/CloseEvent.res index 6b269bc9..dfbd580e 100644 --- a/src/WebSocketsAPI/CloseEvent.res +++ b/src/WebSocketsAPI/CloseEvent.res @@ -1,4 +1,4 @@ -open WebSocketsAPI +open WebSocketsTypes include Event.Impl({type t = closeEvent}) diff --git a/src/WebSocketsAPI/MessageEvent.res b/src/WebSocketsAPI/MessageEvent.res index 99228644..6a141c0c 100644 --- a/src/WebSocketsAPI/MessageEvent.res +++ b/src/WebSocketsAPI/MessageEvent.res @@ -1,5 +1,5 @@ -open EventAPI -open WebSocketsAPI +open EventTypes +open WebSocketsTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MessageEvent) diff --git a/src/WebSocketsAPI/WebSocket.res b/src/WebSocketsAPI/WebSocket.res index 6542e554..a840d61d 100644 --- a/src/WebSocketsAPI/WebSocket.res +++ b/src/WebSocketsAPI/WebSocket.res @@ -1,5 +1,5 @@ -open WebSocketsAPI -open FileAPI +open WebSocketsTypes +open FileTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/WebSocket) diff --git a/src/WebSocketsAPI.res b/src/WebSocketsTypes.res similarity index 99% rename from src/WebSocketsAPI.res rename to src/WebSocketsTypes.res index 1ce792c2..533c7e31 100644 --- a/src/WebSocketsAPI.res +++ b/src/WebSocketsTypes.res @@ -1,8 +1,8 @@ @@warning("-30") open Prelude -open EventAPI -open ChannelMessagingAPI +open EventTypes +open ChannelMessagingTypes type binaryType = | @as("arraybuffer") Arraybuffer diff --git a/src/WebSpeechAPI/SpeechSynthesis.res b/src/WebSpeechAPI/SpeechSynthesis.res index 34ab2a2b..346d5d51 100644 --- a/src/WebSpeechAPI/SpeechSynthesis.res +++ b/src/WebSpeechAPI/SpeechSynthesis.res @@ -1,4 +1,4 @@ -open WebSpeechAPI +open WebSpeechTypes include EventTarget.Impl({type t = speechSynthesis}) diff --git a/src/WebSpeechAPI/SpeechSynthesisUtterance.res b/src/WebSpeechAPI/SpeechSynthesisUtterance.res index 5bae9180..163f62e3 100644 --- a/src/WebSpeechAPI/SpeechSynthesisUtterance.res +++ b/src/WebSpeechAPI/SpeechSynthesisUtterance.res @@ -1,4 +1,4 @@ -open WebSpeechAPI +open WebSpeechTypes include EventTarget.Impl({type t = speechSynthesisUtterance}) diff --git a/src/WebSpeechAPI.res b/src/WebSpeechTypes.res similarity index 99% rename from src/WebSpeechAPI.res rename to src/WebSpeechTypes.res index 4cf27bff..e798dd02 100644 --- a/src/WebSpeechAPI.res +++ b/src/WebSpeechTypes.res @@ -1,6 +1,6 @@ @@warning("-30") -open EventAPI +open EventTypes /** This Web Speech API interface is the controller interface for the speech service; this can be used to retrieve information about the synthesis voices available on the device, start and pause speech, and other commands besides. diff --git a/src/WebStorageAPI/Storage.res b/src/WebStorageAPI/Storage.res index 17765bb1..15b6fb99 100644 --- a/src/WebStorageAPI/Storage.res +++ b/src/WebStorageAPI/Storage.res @@ -1,4 +1,4 @@ -open WebStorageAPI +open WebStorageTypes /** Returns the name of the nth key, or null if n is greater than or equal to the number of key/value pairs. diff --git a/src/WebStorageAPI/StorageEvent.res b/src/WebStorageAPI/StorageEvent.res index ed31ad55..f5fee7f4 100644 --- a/src/WebStorageAPI/StorageEvent.res +++ b/src/WebStorageAPI/StorageEvent.res @@ -1,4 +1,4 @@ -open WebStorageAPI +open WebStorageTypes include Event.Impl({type t = storageEvent}) diff --git a/src/WebStorageAPI.res b/src/WebStorageTypes.res similarity index 99% rename from src/WebStorageAPI.res rename to src/WebStorageTypes.res index a38a107a..4b5d394c 100644 --- a/src/WebStorageAPI.res +++ b/src/WebStorageTypes.res @@ -1,6 +1,6 @@ @@warning("-30") -open EventAPI +open EventTypes /** This Web Storage API interface provides access to a particular domain's session or local storage. It allows, for example, the addition, modification, or deletion of stored data items. diff --git a/src/WebVTTAPI/TextTrack.res b/src/WebVTTAPI/TextTrack.res index 4e5f9d19..2202216b 100644 --- a/src/WebVTTAPI/TextTrack.res +++ b/src/WebVTTAPI/TextTrack.res @@ -1,4 +1,4 @@ -open WebVTTAPI +open WebVTTTypes include EventTarget.Impl({type t = textTrack}) diff --git a/src/WebVTTAPI/TextTrackCueList.res b/src/WebVTTAPI/TextTrackCueList.res index 1f488a4d..040852be 100644 --- a/src/WebVTTAPI/TextTrackCueList.res +++ b/src/WebVTTAPI/TextTrackCueList.res @@ -1,4 +1,4 @@ -open WebVTTAPI +open WebVTTTypes /** Returns the first text track cue (in text track cue order) with text track cue identifier id. diff --git a/src/WebVTTAPI.res b/src/WebVTTTypes.res similarity index 99% rename from src/WebVTTAPI.res rename to src/WebVTTTypes.res index 48a10721..9f8ddec4 100644 --- a/src/WebVTTAPI.res +++ b/src/WebVTTTypes.res @@ -1,6 +1,6 @@ @@warning("-30") -open EventAPI +open EventTypes type textTrackKind = | @as("captions") Captions diff --git a/src/WebWorkersAPI/CacheStorage.res b/src/WebWorkersAPI/CacheStorage.res index e829b6fc..a38dfbd9 100644 --- a/src/WebWorkersAPI/CacheStorage.res +++ b/src/WebWorkersAPI/CacheStorage.res @@ -1,5 +1,5 @@ -open FetchAPI -open WebWorkersAPI +open FetchTypes +open WebWorkersTypes /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CacheStorage/match) diff --git a/src/WebWorkersAPI/SharedWorker.res b/src/WebWorkersAPI/SharedWorker.res index d4fc5280..1f43f771 100644 --- a/src/WebWorkersAPI/SharedWorker.res +++ b/src/WebWorkersAPI/SharedWorker.res @@ -1,5 +1,5 @@ -open ChannelMessagingAPI -open WebWorkersAPI +open ChannelMessagingTypes +open WebWorkersTypes include EventTarget.Impl({type t = sharedWorker}) @@ -58,7 +58,7 @@ The port property of the SharedWorker interface returns a MessagePort object used to communicate and control the shared worker. ```res -let port: WebAPI.ChannelMessagingAPI.messagePort = SharedWorker.port(myWorker) +let port: WebAPI.ChannelMessagingTypes.messagePort = SharedWorker.port(myWorker) ``` [Read more on MDN](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorker/port) diff --git a/src/WebWorkersAPI/SharedWorkerGlobalScope.res b/src/WebWorkersAPI/SharedWorkerGlobalScope.res index bcc02b00..adde57a0 100644 --- a/src/WebWorkersAPI/SharedWorkerGlobalScope.res +++ b/src/WebWorkersAPI/SharedWorkerGlobalScope.res @@ -1,4 +1,4 @@ -open WebWorkersAPI +open WebWorkersTypes module Impl = ( T: { diff --git a/src/WebWorkersAPI/WorkerGlobalScope.res b/src/WebWorkersAPI/WorkerGlobalScope.res index 8c88ef0e..638567e0 100644 --- a/src/WebWorkersAPI/WorkerGlobalScope.res +++ b/src/WebWorkersAPI/WorkerGlobalScope.res @@ -1,5 +1,5 @@ -open WebWorkersAPI -open FetchAPI +open WebWorkersTypes +open FetchTypes module Impl = ( T: { diff --git a/src/WebWorkersAPI.res b/src/WebWorkersTypes.res similarity index 98% rename from src/WebWorkersAPI.res rename to src/WebWorkersTypes.res index 3fb24122..78da07f5 100644 --- a/src/WebWorkersAPI.res +++ b/src/WebWorkersTypes.res @@ -1,5 +1,5 @@ -open EventAPI -open FetchAPI +open EventTypes +open FetchTypes /** Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec. diff --git a/tests/DOMAPI/AddEventListener__test.res b/tests/DOMAPI/AddEventListener__test.res index 6aafbe5c..eb491ae3 100644 --- a/tests/DOMAPI/AddEventListener__test.res +++ b/tests/DOMAPI/AddEventListener__test.res @@ -6,7 +6,7 @@ let h2 = document->Document.querySelector("h2")->Null.toOption switch (button, h2) { | (Some(button), Some(h2)) => - button->Element.addEventListener(EventAPI.Click, (e: UIEventsAPI.mouseEvent) => { + button->Element.addEventListener(EventTypes.Click, (e: UIEventsTypes.mouseEvent) => { Console.log(`Button clicked, ${Int.toString(e.button)}`) switch h2.textContent { | Null => h2.textContent = Value("1") diff --git a/tests/DOMAPI/Element__test.res b/tests/DOMAPI/Element__test.res index 9a766fba..4d637266 100644 --- a/tests/DOMAPI/Element__test.res +++ b/tests/DOMAPI/Element__test.res @@ -1,4 +1,4 @@ -external myElement: DOMAPI.element = "myElement" +external myElement: DOMTypes.element = "myElement" switch myElement->Element.getAttribute("foo") { | Null.Value(value) => value->Console.log diff --git a/tests/DOMAPI/HTMLCanvasElement__test.res b/tests/DOMAPI/HTMLCanvasElement__test.res index 75522a30..6c089f33 100644 --- a/tests/DOMAPI/HTMLCanvasElement__test.res +++ b/tests/DOMAPI/HTMLCanvasElement__test.res @@ -1,6 +1,6 @@ open WebAPI.Global -let myCanvas: DOMAPI.htmlCanvasElement = +let myCanvas: DOMTypes.htmlCanvasElement = document->Document.getElementById("myCanvas")->Prelude.unsafeConversation let ctx = myCanvas->HTMLCanvasElement.getContext2D @@ -9,7 +9,7 @@ ctx->CanvasRenderingContext2D.fillRect(~x=50., ~y=50., ~w=200., ~h=200.) ctx.fillStyle = FillStyle.fromString("black") ctx.font = "2px Tahoma" -ctx.textBaseline = CanvasAPI.Top +ctx.textBaseline = CanvasTypes.Top ctx->CanvasRenderingContext2D.fillText(~text="MY TEXT", ~x=60., ~y=60.) switch ctx.fillStyle->FillStyle.decode { @@ -18,7 +18,7 @@ switch ctx.fillStyle->FillStyle.decode { | FillStyle.CanvasPattern(_) => Console.log("CanvasPattern") } -let img: DOMAPI.htmlImageElement = document->Document.createElement("img")->Obj.magic +let img: DOMTypes.htmlImageElement = document->Document.createElement("img")->Obj.magic ctx->CanvasRenderingContext2D.drawImageWithDimensions( ~image=img, ~dx=0., diff --git a/tests/DOMAPI/HTMLElement__test.res b/tests/DOMAPI/HTMLElement__test.res index 9b8743b1..daf349ae 100644 --- a/tests/DOMAPI/HTMLElement__test.res +++ b/tests/DOMAPI/HTMLElement__test.res @@ -5,5 +5,5 @@ document ->Document.querySelector("form") ->Null.toOption ->Option.forEach(form => { - form->Element.scrollIntoViewWithOptions({behavior: DOMAPI.Smooth}) + form->Element.scrollIntoViewWithOptions({behavior: DOMTypes.Smooth}) }) diff --git a/tests/DOMAPI/HTMLInputElement__test.res b/tests/DOMAPI/HTMLInputElement__test.res index 899e49e2..3cdd8f2b 100644 --- a/tests/DOMAPI/HTMLInputElement__test.res +++ b/tests/DOMAPI/HTMLInputElement__test.res @@ -1,5 +1,5 @@ open Global -let input: DOMAPI.htmlInputElement = +let input: DOMTypes.htmlInputElement = document->Document.createElement("input")->Prelude.unsafeConversation let value = input.value diff --git a/tests/DOMAPI/ImageData__test.res b/tests/DOMAPI/ImageData__test.res index 25ec05a4..3345c795 100644 --- a/tests/DOMAPI/ImageData__test.res +++ b/tests/DOMAPI/ImageData__test.res @@ -1,4 +1,4 @@ -open DOMAPI +open DOMTypes let imageData = ImageData.makeWithData(~data=Uint8ClampedArray.fromArray([]), ~sw=100, ~sh=100) diff --git a/tests/FetchAPI/FormData__test.res b/tests/FetchAPI/FormData__test.res index 6a5cb28e..22c26ba5 100644 --- a/tests/FetchAPI/FormData__test.res +++ b/tests/FetchAPI/FormData__test.res @@ -1,11 +1,11 @@ /* This works when your form has an id of "myForm" */ @scope(("document", "forms")) -external myForm: DOMAPI.htmlFormElement = "myForm" +external myForm: DOMTypes.htmlFormElement = "myForm" let formData = FormData.make(~form=myForm) // Get a form field - returns formDataEntryValue which could be string or File -let phoneEntry: null = formData->FormData.get("phone") +let phoneEntry: null = formData->FormData.get("phone") // Decode the entry to handle both string and File cases let _ = switch phoneEntry->Null.toOption { @@ -18,7 +18,7 @@ let _ = switch phoneEntry->Null.toOption { } // Get all values for a field (useful for multi-select or multiple file inputs) -let allImages: array = formData->FormData.getAll("images") +let allImages: array = formData->FormData.getAll("images") // Process all entries let _ = allImages->Array.forEach(entry => { @@ -33,7 +33,7 @@ let stringEntry = FormDataEntryValue.fromString("test value") let fileEntry = FormDataEntryValue.fromFile(File.make(~fileBits=[], ~fileName="test.txt")) // Iterate over all entries in the FormData -let entries: Iterator.t<(string, FetchAPI.formDataEntryValue)> = formData->FormData.entries +let entries: Iterator.t<(string, FetchTypes.formDataEntryValue)> = formData->FormData.entries let _ = entries->Iterator.forEach(((key, value)) => { switch value->FormDataEntryValue.decode { | FormDataEntryValue.String(s) => Console.log(`${key}: ${s}`) diff --git a/tests/NotificationsAPI/Notification__test.res b/tests/NotificationsAPI/Notification__test.res index d2f8a616..e6f13dca 100644 --- a/tests/NotificationsAPI/Notification__test.res +++ b/tests/NotificationsAPI/Notification__test.res @@ -1,4 +1,4 @@ -open WebAPI.NotificationAPI +open WebAPI.NotificationTypes let current = Notification.permission diff --git a/tests/ServiceWorkerAPI/ServiceWorker__test.res b/tests/ServiceWorkerAPI/ServiceWorker__test.res index aa56074a..76396592 100644 --- a/tests/ServiceWorkerAPI/ServiceWorker__test.res +++ b/tests/ServiceWorkerAPI/ServiceWorker__test.res @@ -1,8 +1,8 @@ -open WebAPI.ServiceWorkerAPI +open WebAPI.ServiceWorkerTypes external self: serviceWorkerGlobalScope = "self" -self->ServiceWorkerGlobalScope.addEventListener(EventAPI.Push, (event: PushAPI.pushEvent) => { +self->ServiceWorkerGlobalScope.addEventListener(EventTypes.Push, (event: PushTypes.pushEvent) => { Console.log("received push event") // Extract data @@ -34,8 +34,8 @@ self->ServiceWorkerGlobalScope.addEventListener(EventAPI.Push, (event: PushAPI.p ->Promise.ignore }) -self->ServiceWorkerGlobalScope.addEventListener(EventAPI.NotificationClick, ( - event: NotificationAPI.notificationEvent, +self->ServiceWorkerGlobalScope.addEventListener(EventTypes.NotificationClick, ( + event: NotificationTypes.notificationEvent, ) => { Console.log(`notification clicked: ${event.action}`) // Close the notification diff --git a/tests/WebAudioAPI/AudioDestinationNode__.test.res b/tests/WebAudioAPI/AudioDestinationNode__.test.res index 7b8acb62..11f7b5ea 100644 --- a/tests/WebAudioAPI/AudioDestinationNode__.test.res +++ b/tests/WebAudioAPI/AudioDestinationNode__.test.res @@ -1,4 +1,4 @@ -open WebAudioAPI +open WebAudioTypes let ctx = AudioContext.make() diff --git a/tests/WebWorkersAPI/SharedWorkerGlobalScope__test.res b/tests/WebWorkersAPI/SharedWorkerGlobalScope__test.res index b6dfedb1..5b36c290 100644 --- a/tests/WebWorkersAPI/SharedWorkerGlobalScope__test.res +++ b/tests/WebWorkersAPI/SharedWorkerGlobalScope__test.res @@ -1,4 +1,4 @@ -open WebAPI.WebWorkersAPI +open WebAPI.WebWorkersTypes external getSelf: unit => sharedWorkerGlobalScope = "self" diff --git a/tests/WebWorkersAPI/SharedWorker__test.res b/tests/WebWorkersAPI/SharedWorker__test.res index 8e2c19b1..dfebff61 100644 --- a/tests/WebWorkersAPI/SharedWorker__test.res +++ b/tests/WebWorkersAPI/SharedWorker__test.res @@ -1,4 +1,4 @@ -open WebAPI.WebWorkersAPI +open WebAPI.WebWorkersTypes let shared1: sharedWorker = SharedWorker.make("sharedworker.js") @@ -12,7 +12,7 @@ let shared3: sharedWorker = SharedWorker.makeWithOptions( }, ) -let port: WebAPI.ChannelMessagingAPI.messagePort = SharedWorker.port(shared1) +let port: WebAPI.ChannelMessagingTypes.messagePort = SharedWorker.port(shared1) external getSelf: unit => sharedWorkerGlobalScope = "self"