Skip to content

Commit 6a3d5a2

Browse files
committed
Fix Dom module type checking errors
1 parent a1433ae commit 6a3d5a2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pages/apis/latest/dom/storage.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## t
44

5-
```res sig
5+
```res prelude sig
66
type t
77
```
88

@@ -39,11 +39,11 @@ external length: t => int = "length"
3939
## localStorage
4040

4141
```res sig
42-
external localStorage: t = "localStorage"
42+
@bs.val external localStorage: t = "localStorage"
4343
```
4444

4545
## sessionStorage
4646

4747
```res sig
48-
external sessionStorage: t = "sessionStorage"
48+
@bs.val external sessionStorage: t = "sessionStorage"
4949
```

pages/apis/latest/dom/storage2.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The same as [Dom.Storage](./storage2), but with `t` on first argument position f
88

99
## t
1010

11-
```res sig
11+
```res prelude sig
1212
type t
1313
```
1414

@@ -45,11 +45,11 @@ external length: t => int = "length"
4545
## localStorage
4646

4747
```res sig
48-
external localStorage: t = "localStorage"
48+
@bs.val external localStorage: t = "localStorage"
4949
```
5050

5151
## sessionStorage
5252

5353
```res sig
54-
external sessionStorage: t = "sessionStorage"
54+
@bs.val external sessionStorage: t = "sessionStorage"
5555
```

0 commit comments

Comments
 (0)