Skip to content

Commit aa20810

Browse files
committed
Remove some unnecessary opens
1 parent f5ca657 commit aa20810

File tree

7 files changed

+5
-14
lines changed

7 files changed

+5
-14
lines changed

rescript.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"version": "0.0.0",
3-
"name": "rescript-dom-generator",
3+
"name": "@rescript/webapi",
44
"sources": [
55
{
66
"dir": "src",

src/CanvasAPI.res

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
open Prelude
44
open EventAPI
5-
open FileAPI
65

76
type offscreenRenderingContextId =
87
| @as("2d") V2d

src/ChannelMessagingAPI.res

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
@@warning("-30")
22

3-
open Prelude
43
open EventAPI
54

65
/**

src/ClipboardAPI.res

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
@@warning("-30")
22

3-
open Prelude
43
open EventAPI
5-
open FileAPI
64

75
type presentationStyle =
86
| @as("attachment") Attachment

src/DOMAPI.res

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ open FileAndDirectoryEntriesAPI
2323
open WebVTTAPI
2424
open RemotePlaybackAPI
2525
open CanvasAPI
26-
open PictureInPictureAPI
2726
open StorageAPI
2827
open WebLocksAPI
2928
open CSSFontLoadingAPI

src/StorageAPI.res

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
@@warning("-30")
2-
3-
open FileAPI
4-
52
/**
63
[See StorageManager on MDN](https://developer.mozilla.org/docs/Web/API/StorageManager)
74
*/

tools/TypeScript-DOM-lib-generator/src/build/emitter.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1479,7 +1479,7 @@ export async function emitRescriptBindings(webidl: Browser.WebIdl) {
14791479
{
14801480
name: "ChannelMessagingAPI",
14811481
entries: [individualInterfaces(["MessagePort"])],
1482-
opens: ["Prelude", "EventAPI"],
1482+
opens: ["EventAPI"],
14831483
},
14841484
// https://developer.mozilla.org/en-US/docs/Web/API/History
14851485
{
@@ -1546,7 +1546,7 @@ export async function emitRescriptBindings(webidl: Browser.WebIdl) {
15461546
individualInterfaces(["ClipboardItem", "Clipboard"]),
15471547
dictionaries(["ClipboardItemOptions"]),
15481548
],
1549-
opens: ["Prelude", "EventAPI", "FileAPI"],
1549+
opens: ["EventAPI"],
15501550
},
15511551
// https://developer.mozilla.org/en-US/docs/Web/API/Credential_Management_API
15521552
{
@@ -1894,7 +1894,7 @@ export async function emitRescriptBindings(webidl: Browser.WebIdl) {
18941894
),
18951895
dictionaries(["ImageEncodeOptions"]),
18961896
],
1897-
opens: ["Prelude", "EventAPI", "FileAPI"],
1897+
opens: ["Prelude", "EventAPI"],
18981898
},
18991899
// https://developer.mozilla.org/en-US/docs/Web/API/Picture-in-Picture_API
19001900
{
@@ -1918,7 +1918,7 @@ export async function emitRescriptBindings(webidl: Browser.WebIdl) {
19181918
individualInterfaces(["StorageManager"]),
19191919
dictionaries(["StorageEstimate"]),
19201920
],
1921-
opens: ["FileAPI"],
1921+
opens: [],
19221922
},
19231923
// https://developer.mozilla.org/en-US/docs/Web/API/Web_Locks_API
19241924
{
@@ -2250,7 +2250,6 @@ export async function emitRescriptBindings(webidl: Browser.WebIdl) {
22502250
"WebVTTAPI",
22512251
"RemotePlaybackAPI",
22522252
"CanvasAPI",
2253-
"PictureInPictureAPI",
22542253
"StorageAPI",
22552254
"WebLocksAPI",
22562255
"CSSFontLoadingAPI",

0 commit comments

Comments
 (0)