Skip to content

Add @editor.completeFrom #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/CSSFontLoadingAPI.res
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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,
/**
Expand Down
6 changes: 6 additions & 0 deletions src/CanvasAPI.res
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ type webGLPowerPreference =
/**
[See OffscreenCanvas on MDN](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas)
*/
@editor.completeFrom(OffscreenCanvas)
type offscreenCanvas = {
...eventTarget,
/**
Expand All @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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 = {}

/**
Expand Down
1 change: 1 addition & 0 deletions src/ChannelMessagingAPI.res
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down
2 changes: 2 additions & 0 deletions src/ClipboardAPI.res
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -24,6 +25,7 @@ type clipboardItem = {
/**
[See Clipboard on MDN](https://developer.mozilla.org/docs/Web/API/Clipboard)
*/
@editor.completeFrom(Clipboard)
type clipboard = {
...eventTarget,
}
Expand Down
1 change: 1 addition & 0 deletions src/CredentialManagementAPI.res
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ type attestationConveyancePreference =
/**
[See CredentialsContainer on MDN](https://developer.mozilla.org/docs/Web/API/CredentialsContainer)
*/
@editor.completeFrom(CredentialsContainer)
type credentialsContainer = {}

/**
Expand Down
Loading
Loading