-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathURL.res
More file actions
37 lines (31 loc) · 977 Bytes
/
URL.res
File metadata and controls
37 lines (31 loc) · 977 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
open URLAPI
/**
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/URL)
*/
@new
external make: (~url: string, ~base: string=?) => url = "URL"
/**
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/URL/parse_static)
*/
@scope("URL")
external parse: (~url: string, ~base: string=?) => url = "parse"
/**
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/URL/canParse_static)
*/
@scope("URL")
external canParse: (~url: string, ~base: string=?) => bool = "canParse"
/**
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/URL/toJSON)
*/
@send
external toJSON: url => string = "toJSON"
/**
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL_static)
*/
@scope("URL")
external createObjectURL: unknown => string = "createObjectURL"
/**
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL_static)
*/
@scope("URL")
external revokeObjectURL: string => unit = "revokeObjectURL"