diff --git a/src/CSSFontLoadingAPI.res b/src/CSSFontLoadingAPI.res index 6ee7d2f..5232bbf 100644 --- a/src/CSSFontLoadingAPI.res +++ b/src/CSSFontLoadingAPI.res @@ -22,6 +22,7 @@ type fontFaceSetLoadStatus = /** [See FontFace on MDN](https://developer.mozilla.org/docs/Web/API/FontFace) */ +@editor.completeFrom(FontFace) type rec fontFace = { /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFace/family) @@ -76,6 +77,8 @@ type rec fontFace = { /** [See FontFaceSet on MDN](https://developer.mozilla.org/docs/Web/API/FontFaceSet) */ +@editor.completeFrom(FontFace) +@editor.completeFrom(FontFaceSet) type rec fontFaceSet = { ...eventTarget, /** diff --git a/src/CanvasAPI.res b/src/CanvasAPI.res index 11fd4e7..e7e431b 100644 --- a/src/CanvasAPI.res +++ b/src/CanvasAPI.res @@ -120,6 +120,7 @@ type webGLPowerPreference = /** [See OffscreenCanvas on MDN](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas) */ +@editor.completeFrom(OffscreenCanvas) type offscreenCanvas = { ...eventTarget, /** @@ -141,6 +142,7 @@ They can be set, to replace the bitmap with a new, transparent black bitmap of t /** [See ImageBitmap on MDN](https://developer.mozilla.org/docs/Web/API/ImageBitmap) */ +@editor.completeFrom(ImageBitmap) type imageBitmap = { /** Returns the intrinsic width of the image, in CSS pixels. @@ -271,6 +273,7 @@ type offscreenCanvasRenderingContext2D = { /** [See ImageBitmapRenderingContext on MDN](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext) */ +@editor.completeFrom(ImageBitmapRenderingContext) type imageBitmapRenderingContext = { /** Returns the canvas element that the context is bound to. @@ -336,18 +339,21 @@ type webGL2RenderingContext = { An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). [See CanvasGradient on MDN](https://developer.mozilla.org/docs/Web/API/CanvasGradient) */ +@editor.completeFrom(CanvasGradient) type canvasGradient = {} /** An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. [See CanvasPattern on MDN](https://developer.mozilla.org/docs/Web/API/CanvasPattern) */ +@editor.completeFrom(CanvasPattern) type canvasPattern = {} /** This Canvas 2D API interface is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. [See Path2D on MDN](https://developer.mozilla.org/docs/Web/API/Path2D) */ +@editor.completeFrom(Path2D) type path2D = {} /** diff --git a/src/ChannelMessagingAPI.res b/src/ChannelMessagingAPI.res index 1cfc02a..a960ac7 100644 --- a/src/ChannelMessagingAPI.res +++ b/src/ChannelMessagingAPI.res @@ -6,6 +6,7 @@ open EventAPI 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. [See MessagePort on MDN](https://developer.mozilla.org/docs/Web/API/MessagePort) */ +@editor.completeFrom(MessagePort) type messagePort = { ...eventTarget, } diff --git a/src/ClipboardAPI.res b/src/ClipboardAPI.res index 56e2067..ab2e5c5 100644 --- a/src/ClipboardAPI.res +++ b/src/ClipboardAPI.res @@ -10,6 +10,7 @@ type presentationStyle = /** [See ClipboardItem on MDN](https://developer.mozilla.org/docs/Web/API/ClipboardItem) */ +@editor.completeFrom(ClipboardItem) type clipboardItem = { /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ClipboardItem/presentationStyle) @@ -24,6 +25,7 @@ type clipboardItem = { /** [See Clipboard on MDN](https://developer.mozilla.org/docs/Web/API/Clipboard) */ +@editor.completeFrom(Clipboard) type clipboard = { ...eventTarget, } diff --git a/src/CredentialManagementAPI.res b/src/CredentialManagementAPI.res index 77a783e..865d6b2 100644 --- a/src/CredentialManagementAPI.res +++ b/src/CredentialManagementAPI.res @@ -41,6 +41,7 @@ type attestationConveyancePreference = /** [See CredentialsContainer on MDN](https://developer.mozilla.org/docs/Web/API/CredentialsContainer) */ +@editor.completeFrom(CredentialsContainer) type credentialsContainer = {} /** diff --git a/src/DOMAPI.res b/src/DOMAPI.res index 961a7f9..1366770 100644 --- a/src/DOMAPI.res +++ b/src/DOMAPI.res @@ -201,12 +201,13 @@ type shareData = { mutable url?: string, } -type fillStyle +@editor.completeFrom(FillStyle) type fillStyle /** -The location (URL) of the object it is linked to. Changes done on it are reflected on the object it relates to. Both the Document and Window interface have such a linked Location, accessible via Document.location and Window.location respectively. +@editor.completeFrom(Window) The location (URL) of the object it is linked to. Changes done on it are reflected on the object it relates to. Both the Document and Window interface have such a linked Location, accessible via Document.location and Window.location respectively. [See Location on MDN](https://developer.mozilla.org/docs/Web/API/Location) */ +@editor.completeFrom(Location) type location = { /** Returns the Location object's URL. @@ -294,6 +295,7 @@ type userActivation = { The state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities. [See Navigator on MDN](https://developer.mozilla.org/docs/Web/API/Navigator) */ +@editor.completeFrom(Navigator) type navigator = { /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Navigator/clipboard) @@ -385,6 +387,7 @@ type navigator = { A set of space-separated tokens. Such a set is returned by Element.classList, HTMLLinkElement.relList, HTMLAnchorElement.relList, HTMLAreaElement.relList, HTMLIframeElement.sandbox, or HTMLOutputElement.htmlFor. It is indexed beginning with 0 as with JavaScript Array objects. DOMTokenList is always case-sensitive. [See DOMTokenList on MDN](https://developer.mozilla.org/docs/Web/API/DOMTokenList) */ +@editor.completeFrom(DOMTokenList) type domTokenList = { /** Returns the number of tokens. @@ -404,6 +407,7 @@ Can be set, to change the associated attribute. A collection of Attr objects. Objects inside a NamedNodeMap are not in any particular order, unlike NodeList, although they may be accessed by an index as in an array. [See NamedNodeMap on MDN](https://developer.mozilla.org/docs/Web/API/NamedNodeMap) */ +@editor.completeFrom(NamedNodeMap) type namedNodeMap = { /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/length) @@ -419,6 +423,7 @@ type fragmentDirective = {} /** [See CustomElementRegistry on MDN](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry) */ +@editor.completeFrom(CustomElementRegistry) type customElementRegistry = {} /** @@ -434,6 +439,7 @@ type barProp = { /** [See ScreenOrientation on MDN](https://developer.mozilla.org/docs/Web/API/ScreenOrientation) */ +@editor.completeFrom(ScreenOrientation) type screenOrientation = { ...eventTarget, /** @@ -494,6 +500,7 @@ type offscreenRenderingContext = any /** [See AnimationTimeline on MDN](https://developer.mozilla.org/docs/Web/API/AnimationTimeline) */ +@editor.completeFrom(Animation) type rec animationTimeline = { /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/currentTime) @@ -504,6 +511,7 @@ type rec animationTimeline = { /** [See DocumentTimeline on MDN](https://developer.mozilla.org/docs/Web/API/DocumentTimeline) */ +@editor.completeFrom(DocumentTimeline) and documentTimeline = { // Base properties from AnimationTimeline /** @@ -516,6 +524,7 @@ and documentTimeline = { /** [See MediaList on MDN](https://developer.mozilla.org/docs/Web/API/MediaList) */ +@editor.completeFrom(MediaList) type mediaList = { /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MediaList/mediaText) @@ -530,6 +539,7 @@ type mediaList = { /** [See StylePropertyMapReadOnly on MDN](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly) */ +@editor.completeFrom(StylePropertyMapReadOnly) type stylePropertyMapReadOnly = { /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/size) @@ -540,6 +550,7 @@ type stylePropertyMapReadOnly = { /** [See StylePropertyMap on MDN](https://developer.mozilla.org/docs/Web/API/StylePropertyMap) */ +@editor.completeFrom(StylePropertyMap) type stylePropertyMap = { ...stylePropertyMapReadOnly, } @@ -554,6 +565,7 @@ type domStringMap = {} A list of StyleSheet. [See StyleSheetList on MDN](https://developer.mozilla.org/docs/Web/API/StyleSheetList) */ +@editor.completeFrom(StyleSheetList) type rec styleSheetList = { /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/StyleSheetList/length) @@ -601,6 +613,7 @@ and styleSheet = { A single CSS style sheet. It inherits properties and methods from its parent, StyleSheet. [See CSSStyleSheet on MDN](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet) */ +@editor.completeFrom(CSSStyleSheet) and cssStyleSheet = { // Base properties from StyleSheet /** @@ -667,6 +680,7 @@ and cssRule = { A CSSRuleList is an (indirect-modify only) array-like object containing an ordered collection of CSSRule objects. [See CSSRuleList on MDN](https://developer.mozilla.org/docs/Web/API/CSSRuleList) */ +@editor.completeFrom(CSSRuleList) and cssRuleList = { /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CSSRuleList/length) @@ -678,6 +692,7 @@ and cssRuleList = { An object that is a CSS declaration block, and exposes style information and various style-related methods and properties. [See CSSStyleDeclaration on MDN](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration) */ +@editor.completeFrom(CSSStyleDeclaration) and cssStyleDeclaration = { /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssText) @@ -2385,6 +2400,7 @@ and cssStyleDeclaration = { Node is an interface from which a number of DOM API object types inherit. It allows those types to be treated similarly; for example, inheriting the same set of methods, or being tested in the same way. [See Node on MDN](https://developer.mozilla.org/docs/Web/API/Node) */ +@editor.completeFrom(Node) type rec node = { ...eventTarget, /** @@ -2461,6 +2477,7 @@ type rec node = { NodeList objects are collections of nodes, usually returned by properties such as Node.childNodes and methods such as document.querySelectorAll(). [See NodeList on MDN](https://developer.mozilla.org/docs/Web/API/NodeList) */ +@editor.completeFrom(NodeList) and nodeList = { /** Returns the number of nodes in the collection. @@ -2483,6 +2500,7 @@ and nodeListOf<'tNode> = { Element is the most general base class from which all objects in a Document inherit. It only has methods and properties common to all kinds of elements. More specific classes inherit from Element. [See Element on MDN](https://developer.mozilla.org/docs/Web/API/Element) */ +@editor.completeFrom(Element) and element = { // Base properties from Node /** @@ -2854,6 +2872,7 @@ and element = { /** [See ShadowRoot on MDN](https://developer.mozilla.org/docs/Web/API/ShadowRoot) */ +@editor.completeFrom(ShadowRoot) and shadowRoot = { // Base properties from DocumentFragment // End base properties from DocumentFragment @@ -2994,6 +3013,7 @@ Similarly, when the focused element is in a different node tree than documentOrS A generic collection (array-like object similar to arguments) of elements (in document order) and offers methods and properties for selecting from the list. [See HTMLCollection on MDN](https://developer.mozilla.org/docs/Web/API/HTMLCollection) */ +@editor.completeFrom(HTMLCollection) and htmlCollection = { /** Sets or retrieves the number of objects in a collection. @@ -3016,6 +3036,7 @@ and htmlCollectionOf<'t> = { A collection of HTML form control elements. [See HTMLFormControlsCollection on MDN](https://developer.mozilla.org/docs/Web/API/HTMLFormControlsCollection) */ +@editor.completeFrom(HTMLFormControlsCollection) and htmlFormControlsCollection = { // Base properties from HTMLCollection /** @@ -3030,6 +3051,7 @@ and htmlFormControlsCollection = { Any HTML element. Some elements directly implement this interface, while others implement it via an interface that inherits it. [See HTMLElement on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement) */ +@editor.completeFrom(HTMLElement) and htmlElement = { // Base properties from Element /** @@ -3324,6 +3346,7 @@ and htmlElement = { Contains the descriptive information, or metadata, for a document. This object inherits all of the properties and methods described in the HTMLElement interface. [See HTMLHeadElement on MDN](https://developer.mozilla.org/docs/Web/API/HTMLHeadElement) */ +@editor.completeFrom(HTMLHeadElement) and htmlHeadElement = { // Base properties from HTMLElement /** @@ -3580,6 +3603,7 @@ and htmlHeadElement = { A
element in the DOM; it allows access to and in some cases modification of aspects of the form, as well as access to its component elements. [See HTMLFormElement on MDN](https://developer.mozilla.org/docs/Web/API/HTMLFormElement) */ +@editor.completeFrom(HTMLFormElement) and htmlFormElement = { // Base properties from HTMLElement /** @@ -3887,6 +3911,7 @@ and htmlFormElement = { Provides special properties and methods for manipulating elements. [See HTMLImageElement on MDN](https://developer.mozilla.org/docs/Web/API/HTMLImageElement) */ +@editor.completeFrom(HTMLImageElement) and htmlImageElement = { // Base properties from HTMLElement /** @@ -4230,6 +4255,7 @@ and htmlImageElement = { Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating elements. [See HTMLEmbedElement on MDN](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement) */ +@editor.completeFrom(HTMLEmbedElement) and htmlEmbedElement = { // Base properties from HTMLElement /** @@ -4502,6 +4528,7 @@ and htmlEmbedElement = { Hyperlink elements and provides special properties and methods (beyond those of the regular HTMLElement object interface that they inherit from) for manipulating the layout and presentation of such elements. [See HTMLAnchorElement on MDN](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement) */ +@editor.completeFrom(HTMLAnchorElement) and htmlAnchorElement = { // Base properties from HTMLElement /** @@ -4875,6 +4902,7 @@ Can be set, to change the URL's fragment (ignores leading "#"). Provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of elements. [See HTMLAreaElement on MDN](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement) */ +@editor.completeFrom(HTMLAreaElement) and htmlAreaElement = { // Base properties from HTMLElement /** @@ -5228,6 +5256,7 @@ Can be set, to change the URL's fragment (ignores leading "#"). HTML