Skip to content

Commit 1af4f51

Browse files
committed
Remove nested module
1 parent bb868aa commit 1af4f51

File tree

449 files changed

+4967
-7215
lines changed

Some content is hidden

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

449 files changed

+4967
-7215
lines changed

src/CSSFontLoadingAPI/FontFace.js

Lines changed: 1 addition & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/CSSFontLoadingAPI/FontFace.res

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1-
@@warning("-33")
21
open CSSFontLoadingAPI
32
open Prelude
43

5-
module FontFace = {
6-
/**
7-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFace)
8-
*/
9-
@new
10-
external make: (string, unknown, fontFaceDescriptors) => fontFace = "FontFace"
11-
/**
12-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFace/load)
13-
*/
14-
@send
15-
external load: fontFace => Promise.t<fontFace> = "load"
16-
}
4+
/**
5+
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFace)
6+
*/
7+
@new
8+
external make: (string, unknown, fontFaceDescriptors) => fontFace = "FontFace"
9+
/**
10+
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFace/load)
11+
*/
12+
@send
13+
external load: fontFace => Promise.t<fontFace> = "load"

src/CSSFontLoadingAPI/FontFaceSet.js

Lines changed: 1 addition & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/CSSFontLoadingAPI/FontFaceSet.res

Lines changed: 25 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,31 @@
1-
@@warning("-33")
21
open CSSFontLoadingAPI
32

4-
module FontFaceSet = {
5-
/**
6-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFaceSet/add)
7-
*/
8-
@send
9-
external add: (fontFaceSet, fontFace) => fontFaceSet = "add"
3+
/**
4+
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFaceSet/add)
5+
*/
6+
@send
7+
external add: (fontFaceSet, fontFace) => fontFaceSet = "add"
108

11-
/**
12-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFaceSet/delete)
13-
*/
14-
@send
15-
external delete: (fontFaceSet, fontFace) => bool = "delete"
9+
/**
10+
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFaceSet/delete)
11+
*/
12+
@send
13+
external delete: (fontFaceSet, fontFace) => bool = "delete"
1614

17-
/**
18-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFaceSet/clear)
19-
*/
20-
@send
21-
external clear: fontFaceSet => unit = "clear"
15+
/**
16+
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFaceSet/clear)
17+
*/
18+
@send
19+
external clear: fontFaceSet => unit = "clear"
2220

23-
/**
24-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFaceSet/load)
25-
*/
26-
@send
27-
external load: (fontFaceSet, string, string) => Promise.t<array<fontFace>> = "load"
21+
/**
22+
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFaceSet/load)
23+
*/
24+
@send
25+
external load: (fontFaceSet, string, string) => Promise.t<array<fontFace>> = "load"
2826

29-
/**
30-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFaceSet/check)
31-
*/
32-
@send
33-
external check: (fontFaceSet, string, string) => bool = "check"
34-
}
27+
/**
28+
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFaceSet/check)
29+
*/
30+
@send
31+
external check: (fontFaceSet, string, string) => bool = "check"

src/CanvasAPI/ImageBitmap.js

Lines changed: 1 addition & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/CanvasAPI/ImageBitmap.res

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
@@warning("-33")
21
open CanvasAPI
32

4-
module ImageBitmap = {
5-
/**
6-
Releases imageBitmap's underlying bitmap data.
7-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/ImageBitmap/close)
8-
*/
9-
@send
10-
external close: imageBitmap => unit = "close"
11-
}
3+
/**
4+
Releases imageBitmap's underlying bitmap data.
5+
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/ImageBitmap/close)
6+
*/
7+
@send
8+
external close: imageBitmap => unit = "close"

src/CanvasAPI/OffscreenCanvas.js

Lines changed: 1 addition & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/CanvasAPI/OffscreenCanvas.res

Lines changed: 27 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,40 @@
1-
@@warning("-33")
21
open DOMAPI
32
open CanvasAPI
43
open Prelude
54
open FileAPI
65

7-
module OffscreenCanvas = {
8-
/**
9-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas)
10-
*/
11-
@new
12-
external make: (int, int) => offscreenCanvas = "OffscreenCanvas"
13-
/**
14-
Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API.
6+
/**
7+
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas)
8+
*/
9+
@new
10+
external make: (int, int) => offscreenCanvas = "OffscreenCanvas"
11+
/**
12+
Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API.
1513
1614
This specification defines the "2d" context below, which is similar but distinct from the "2d" context that is created from a canvas element. The WebGL specifications define the "webgl" and "webgl2" contexts. [WEBGL]
1715
1816
Returns null if the canvas has already been initialized with another context type (e.g., trying to get a "2d" context after getting a "webgl" context).
19-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/getContext)
20-
*/
21-
@send
22-
external getContext: (
23-
offscreenCanvas,
24-
offscreenRenderingContextId,
25-
any,
26-
) => offscreenRenderingContext = "getContext"
17+
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/getContext)
18+
*/
19+
@send
20+
external getContext: (
21+
offscreenCanvas,
22+
offscreenRenderingContextId,
23+
any,
24+
) => offscreenRenderingContext = "getContext"
2725

28-
/**
29-
Returns a newly created ImageBitmap object with the image in the OffscreenCanvas object. The image in the OffscreenCanvas object is replaced with a new blank image.
30-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap)
31-
*/
32-
@send
33-
external transferToImageBitmap: offscreenCanvas => imageBitmap = "transferToImageBitmap"
26+
/**
27+
Returns a newly created ImageBitmap object with the image in the OffscreenCanvas object. The image in the OffscreenCanvas object is replaced with a new blank image.
28+
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap)
29+
*/
30+
@send
31+
external transferToImageBitmap: offscreenCanvas => imageBitmap = "transferToImageBitmap"
3432

35-
/**
36-
Returns a promise that will fulfill with a new Blob object representing a file containing the image in the OffscreenCanvas object.
33+
/**
34+
Returns a promise that will fulfill with a new Blob object representing a file containing the image in the OffscreenCanvas object.
3735
3836
The argument, if provided, is a dictionary that controls the encoding options of the image file to be created. The type field specifies the file format and has a default value of "image/png"; that type is also used if the requested type isn't supported. If the image format supports variable quality (such as "image/jpeg"), then the quality field is a number in the range 0.0 to 1.0 inclusive indicating the desired quality level for the resulting image.
39-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/convertToBlob)
40-
*/
41-
@send
42-
external convertToBlob: (offscreenCanvas, imageEncodeOptions) => Promise.t<blob> = "convertToBlob"
43-
}
37+
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/convertToBlob)
38+
*/
39+
@send
40+
external convertToBlob: (offscreenCanvas, imageEncodeOptions) => Promise.t<blob> = "convertToBlob"

src/ChannelMessagingAPI/MessagePort.js

Lines changed: 1 addition & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,25 @@
1-
@@warning("-33")
21
open Prelude
32
open ChannelMessagingAPI
43

5-
module MessagePort = {
6-
/**
7-
Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side.
4+
/**
5+
Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side.
86
97
Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.
10-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/MessagePort/postMessage)
11-
*/
12-
@send
13-
external postMessage: (messagePort, any, array<Dict.t<string>>) => unit = "postMessage"
8+
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/MessagePort/postMessage)
9+
*/
10+
@send
11+
external postMessage: (messagePort, any, array<Dict.t<string>>) => unit = "postMessage"
1412

15-
/**
16-
Begins dispatching messages received on the port.
17-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/MessagePort/start)
18-
*/
19-
@send
20-
external start: messagePort => unit = "start"
13+
/**
14+
Begins dispatching messages received on the port.
15+
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/MessagePort/start)
16+
*/
17+
@send
18+
external start: messagePort => unit = "start"
2119

22-
/**
23-
Disconnects the port, so that it is no longer active.
24-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/MessagePort/close)
25-
*/
26-
@send
27-
external close: messagePort => unit = "close"
28-
}
20+
/**
21+
Disconnects the port, so that it is no longer active.
22+
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/MessagePort/close)
23+
*/
24+
@send
25+
external close: messagePort => unit = "close"

src/ClipboardAPI/Clipboard.js

Lines changed: 1 addition & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ClipboardAPI/Clipboard.res

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,25 @@
1-
@@warning("-33")
21
open ClipboardAPI
32

4-
module Clipboard = {
5-
/**
6-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Clipboard/read)
7-
*/
8-
@send
9-
external read: clipboard => Promise.t<array<clipboardItem>> = "read"
3+
/**
4+
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Clipboard/read)
5+
*/
6+
@send
7+
external read: clipboard => Promise.t<array<clipboardItem>> = "read"
108

11-
/**
12-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Clipboard/readText)
13-
*/
14-
@send
15-
external readText: clipboard => Promise.t<string> = "readText"
9+
/**
10+
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Clipboard/readText)
11+
*/
12+
@send
13+
external readText: clipboard => Promise.t<string> = "readText"
1614

17-
/**
18-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Clipboard/write)
19-
*/
20-
@send
21-
external write: (clipboard, array<clipboardItem>) => Promise.t<unit> = "write"
15+
/**
16+
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Clipboard/write)
17+
*/
18+
@send
19+
external write: (clipboard, array<clipboardItem>) => Promise.t<unit> = "write"
2220

23-
/**
24-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Clipboard/writeText)
25-
*/
26-
@send
27-
external writeText: (clipboard, string) => Promise.t<unit> = "writeText"
28-
}
21+
/**
22+
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Clipboard/writeText)
23+
*/
24+
@send
25+
external writeText: (clipboard, string) => Promise.t<unit> = "writeText"

src/ClipboardAPI/ClipboardItem.js

Lines changed: 1 addition & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ClipboardAPI/ClipboardItem.res

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,20 @@
1-
@@warning("-33")
21
open FileAPI
32
open ClipboardAPI
43
open Prelude
54

6-
module ClipboardItem = {
7-
/**
8-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/ClipboardItem)
9-
*/
10-
@new
11-
external make: (any, clipboardItemOptions) => clipboardItem = "ClipboardItem"
12-
/**
13-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/ClipboardItem/getType)
14-
*/
15-
@send
16-
external getType: (clipboardItem, string) => Promise.t<blob> = "getType"
5+
/**
6+
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/ClipboardItem)
7+
*/
8+
@new
9+
external make: (any, clipboardItemOptions) => clipboardItem = "ClipboardItem"
10+
/**
11+
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/ClipboardItem/getType)
12+
*/
13+
@send
14+
external getType: (clipboardItem, string) => Promise.t<blob> = "getType"
1715

18-
/**
19-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/ClipboardItem/supports_static)
20-
*/
21-
@scope("ClipboardItem")
22-
external supports: string => bool = "supports"
23-
}
16+
/**
17+
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/ClipboardItem/supports_static)
18+
*/
19+
@scope("ClipboardItem")
20+
external supports: string => bool = "supports"

src/CredentialManagementAPI/CredentialsContainer.js

Lines changed: 1 addition & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)