Skip to content

Commit 5cf77f4

Browse files
authored
Merge pull request #118 from rescript-lang/URL
Add URL API
2 parents 95f8e96 + ea5b2d1 commit 5cf77f4

File tree

163 files changed

+337
-589
lines changed

Some content is hidden

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

163 files changed

+337
-589
lines changed

src/CSSFontLoadingAPI.res

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ type rec fontFace = {
7777
/**
7878
[See FontFaceSet on MDN](https://developer.mozilla.org/docs/Web/API/FontFaceSet)
7979
*/
80-
@editor.completeFrom(FontFace)
8180
@editor.completeFrom(FontFaceSet)
8281
type rec fontFaceSet = {
8382
...eventTarget,

src/CSSFontLoadingAPI/FontFaceSet.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
open CSSFontLoadingAPI
22

3-
include EventTarget.Impl({
4-
type t = fontFaceSet
5-
})
3+
include EventTarget.Impl({type t = fontFaceSet})
64

75
/**
86
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFaceSet/add)

src/CanvasAPI/OffscreenCanvas.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ open FileAPI
77
@new
88
external make: (~width: int, ~height: int) => offscreenCanvas = "OffscreenCanvas"
99

10-
include EventTarget.Impl({
11-
type t = offscreenCanvas
12-
})
10+
include EventTarget.Impl({type t = offscreenCanvas})
1311

1412
/**
1513
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.

src/ChannelMessagingAPI/MessagePort.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
open ChannelMessagingAPI
22

3-
include EventTarget.Impl({
4-
type t = messagePort
5-
})
3+
include EventTarget.Impl({type t = messagePort})
64

75
/**
86
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.

src/ClipboardAPI/Clipboard.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
open ClipboardAPI
22

3-
include EventTarget.Impl({
4-
type t = clipboard
5-
})
3+
include EventTarget.Impl({type t = clipboard})
64

75
/**
86
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Clipboard/read)

src/DOMAPI.res

Lines changed: 35 additions & 70 deletions
Large diffs are not rendered by default.

src/DOMAPI/Animation.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ open DOMAPI
77
external make: (~effect: animationEffect=?, ~timeline: animationTimeline=?) => animation =
88
"Animation"
99

10-
include EventTarget.Impl({
11-
type t = animation
12-
})
10+
include EventTarget.Impl({type t = animation})
1311

1412
/**
1513
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Animation/cancel)

src/DOMAPI/CharacterData.res

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ module Impl = (
55
type t
66
},
77
) => {
8-
include Node.Impl({
9-
type t = T.t
10-
})
8+
include Node.Impl({type t = T.t})
119

1210
external asCharacterData: T.t => characterData = "%identity"
1311

@@ -103,6 +101,4 @@ Throws a "HierarchyRequestError" DOMException if the constraints of the node tre
103101
external substringData: (T.t, ~offset: int, ~count: int) => string = "substringData"
104102
}
105103

106-
include Impl({
107-
type t = characterData
108-
})
104+
include Impl({type t = characterData})

src/DOMAPI/Comment.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
open DOMAPI
22

3-
include CharacterData.Impl({
4-
type t = comment
5-
})
3+
include CharacterData.Impl({type t = comment})
64

75
/**
86
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Comment)

src/DOMAPI/Document.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ open ViewTransitionsAPI
88
@new
99
external make: unit => document = "Document"
1010

11-
include Node.Impl({
12-
type t = document
13-
})
11+
include Node.Impl({type t = document})
1412

1513
/**
1614
Returns the first element within node's descendants whose ID is elementId.

0 commit comments

Comments
 (0)