Skip to content

Commit 696690a

Browse files
committed
Add missing documentation for Dom.Storage.setItem
1 parent 351abc9 commit 696690a

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

pages/docs/manual/latest/api/dom/storage.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ type t
1212
external getItem: (string, t) => option<string> = "getItem"
1313
```
1414

15+
## setItem
16+
17+
```res sig
18+
external setItem: (string, string, t) => unit = "setItem"
19+
```
20+
1521
## removeItem
1622

1723
```res sig

pages/docs/manual/latest/api/dom/storage2.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22

33
<Intro>
44

5+
56
The same as [Dom.Storage](./storage2), but with `t` on first argument position for proper `->` usage.
67

78
</Intro>
89

10+
911
## t
1012

1113
```res prelude sig
@@ -18,6 +20,12 @@ type t
1820
external getItem: (t, string) => option<string> = "getItem"
1921
```
2022

23+
## setItem
24+
25+
```res sig
26+
external setItem: (t, string, string) => unit = "setItem"
27+
```
28+
2129
## removeItem
2230

2331
```res sig

0 commit comments

Comments
 (0)