@rescript/webapi 0.1.0-experimental-d9e174c → 0.1.0-experimental-26885fd
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 +1 -1
- package/src/Global.res +1 -2
- package/src/WebStorageAPI/Storage.res +2 -2
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-26885fd",
|
|
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",
|
package/src/Global.res
CHANGED
|
@@ -505,7 +505,6 @@ let response = await fetch(myRequest)
|
|
|
505
505
|
|
|
506
506
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/fetch)
|
|
507
507
|
*/
|
|
508
|
-
@send
|
|
509
508
|
external fetch_withRequest: (request, ~init: requestInit=?) => promise<response> = "fetch"
|
|
510
509
|
|
|
511
510
|
/**
|
|
@@ -567,7 +566,7 @@ Removes the event listener in target's event listener list with the same type, c
|
|
|
567
566
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
|
|
568
567
|
*/
|
|
569
568
|
external removeEventListener: (
|
|
570
|
-
|
|
569
|
+
eventType,
|
|
571
570
|
eventListener<'event>,
|
|
572
571
|
~options: eventListenerOptions=?,
|
|
573
572
|
) => unit = "removeEventListener"
|
|
@@ -5,14 +5,14 @@ Returns the name of the nth key, or null if n is greater than or equal to the nu
|
|
|
5
5
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Storage/key)
|
|
6
6
|
*/
|
|
7
7
|
@send
|
|
8
|
-
external key: (storage, int) => string = "key"
|
|
8
|
+
external key: (storage, int) => Null.t<string> = "key"
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
Returns the current value associated with the given key, or null if the given key does not exist.
|
|
12
12
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Storage/getItem)
|
|
13
13
|
*/
|
|
14
14
|
@send
|
|
15
|
-
external getItem: (storage, string) => string = "getItem"
|
|
15
|
+
external getItem: (storage, string) => Null.t<string> = "getItem"
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
Sets the value of the pair identified by key to value, creating a new key/value pair if none existed for key previously.
|