Skip to content

Commit 0cb26c7

Browse files
committed
Initial constructor overloading
1 parent 5e0a18e commit 0cb26c7

File tree

119 files changed

+175
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+175
-4
lines changed

src/CSSFontLoadingAPI/FontFace.res

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ open Prelude
77
@new
88
external make: (~family: string, ~source: unknown, ~descriptors: fontFaceDescriptors) => fontFace =
99
"FontFace"
10+
1011
/**
1112
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFace/load)
1213
*/

src/CanvasAPI/OffscreenCanvas.res

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ open FileAPI
99
*/
1010
@new
1111
external make: (~width: int, ~height: int) => offscreenCanvas = "OffscreenCanvas"
12+
1213
/**
1314
Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
1415

src/ClipboardAPI/ClipboardItem.res

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ open Prelude
77
*/
88
@new
99
external make: (~items: any, ~options: clipboardItemOptions) => clipboardItem = "ClipboardItem"
10+
1011
/**
1112
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/ClipboardItem/getType)
1213
*/

src/DOMAPI/Animation.res

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ open DOMAPI
66
*/
77
@new
88
external make: (~effect: animationEffect, ~timeline: animationTimeline) => animation = "Animation"
9+
910
/**
1011
Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
1112

src/DOMAPI/CSSStyleSheet.res

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ open DOMAPI
55
*/
66
@new
77
external make: cssStyleSheetInit => cssStyleSheet = "CSSStyleSheet"
8+
89
/**
910
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/insertRule)
1011
*/

src/DOMAPI/Comment.res

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ open EventAPI
66
*/
77
@new
88
external make: string => comment = "Comment"
9+
910
/**
1011
Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes.
1112

src/DOMAPI/DOMRect.res

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ open DOMAPI
55
*/
66
@new
77
external make: (~x: float, ~y: float, ~width: float, ~height: float) => domRect = "DOMRect"
8+
89
/**
910
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMRect/fromRect_static)
1011
*/

src/DOMAPI/DOMRectReadOnly.res

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ open DOMAPI
66
@new
77
external make: (~x: float, ~y: float, ~width: float, ~height: float) => domRectReadOnly =
88
"DOMRectReadOnly"
9+
910
/**
1011
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/fromRect_static)
1112
*/

src/DOMAPI/Document.res

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ open ViewTransitionsAPI
77
*/
88
@new
99
external make: unit => document = "Document"
10+
1011
/**
1112
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/getAnimations)
1213
*/

src/DOMAPI/DocumentFragment.res

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ open EventAPI
66
*/
77
@new
88
external make: unit => documentFragment = "DocumentFragment"
9+
910
/**
1011
Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.
1112

0 commit comments

Comments
 (0)