@rescript/webapi 0.1.0-experimental-ed44142 → 0.1.0-experimental-7363f00

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-ed44142",
3
+ "version": "0.1.0-experimental-7363f00",
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",
@@ -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.