@rescript/webapi 0.1.0-experimental-98e94fc → 0.1.0-experimental-c4ac5f6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rescript/webapi",
|
|
3
|
-
"version": "0.1.0-experimental-
|
|
3
|
+
"version": "0.1.0-experimental-c4ac5f6",
|
|
4
4
|
"description": "Experimental successor to [rescript-webapi](https://github.com/TheSpyder/rescript-webapi)",
|
|
5
5
|
"homepage": "https://rescript-lang.github.io/experimental-rescript-webapi/",
|
|
6
6
|
"bugs": "https://github.com/rescript-lang/experimental-rescript-webapi/issues",
|
|
@@ -31,13 +31,13 @@ external delete: (formData, string) => unit = "delete"
|
|
|
31
31
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/FormData/get)
|
|
32
32
|
*/
|
|
33
33
|
@send
|
|
34
|
-
external get: (formData, string) => string = "get"
|
|
34
|
+
external get: (formData, string) => null<string> = "get"
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/FormData/get)
|
|
38
38
|
*/
|
|
39
39
|
@send
|
|
40
|
-
external getFile: (formData, string) => file = "get"
|
|
40
|
+
external getFile: (formData, string) => null<file> = "get"
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
43
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/FormData/getAll)
|
|
@@ -51,6 +51,12 @@ external getAll: (formData, string) => array<formDataEntryValue> = "getAll"
|
|
|
51
51
|
@send
|
|
52
52
|
external has: (formData, string) => bool = "has"
|
|
53
53
|
|
|
54
|
+
/**
|
|
55
|
+
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/FormData/keys)
|
|
56
|
+
*/
|
|
57
|
+
@send
|
|
58
|
+
external keys: formData => Iterator.t<string> = "keys"
|
|
59
|
+
|
|
54
60
|
/**
|
|
55
61
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/FormData/set)
|
|
56
62
|
*/
|
|
@@ -5,9 +5,7 @@ module Impl = (
|
|
|
5
5
|
type t
|
|
6
6
|
},
|
|
7
7
|
) => {
|
|
8
|
-
include WorkerGlobalScope.Impl({
|
|
9
|
-
type t = T.t
|
|
10
|
-
})
|
|
8
|
+
include WorkerGlobalScope.Impl({type t = T.t})
|
|
11
9
|
|
|
12
10
|
/**
|
|
13
11
|
`close(sharedWorkerGlobalScope)`
|
|
@@ -26,7 +24,4 @@ self -> SharedWorkerGlobalScope.close
|
|
|
26
24
|
external close: T.t => unit = "close"
|
|
27
25
|
}
|
|
28
26
|
|
|
29
|
-
include Impl({
|
|
30
|
-
type t = sharedWorkerGlobalScope
|
|
31
|
-
})
|
|
32
|
-
|
|
27
|
+
include Impl({type t = sharedWorkerGlobalScope})
|
package/src/WebWorkersAPI.res
CHANGED
|
@@ -52,7 +52,6 @@ type workerType =
|
|
|
52
52
|
| @as("classic") Classic
|
|
53
53
|
| @as("module") Module
|
|
54
54
|
|
|
55
|
-
|
|
56
55
|
/** An object containing option properties that can set when creating the
|
|
57
56
|
object instance. */
|
|
58
57
|
type workerOptions = {
|
|
@@ -71,5 +70,5 @@ the complete list of functions available to workers.
|
|
|
71
70
|
@editor.completeFrom(SharedWorkerGlobalScope)
|
|
72
71
|
type sharedWorkerGlobalScope = {
|
|
73
72
|
...workerGlobalScope,
|
|
74
|
-
name: option<string
|
|
73
|
+
name: option<string>,
|
|
75
74
|
}
|