File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ type t<'a> = Js.Null.t<'a>
2
2
3
3
external asNullable : t <'a > => Core__Nullable .t <'a > = "%identity"
4
4
5
- external empty : t <'a > = "#null"
5
+ external null : t <'a > = "#null"
6
6
7
7
external make : 'a => t <'a > = "%identity"
8
8
@@ -11,5 +11,5 @@ external toOption: t<'a> => option<'a> = "#null_to_opt"
11
11
let fromOption : option <'a > => t <'a > = option =>
12
12
switch option {
13
13
| Some (x ) => make (x )
14
- | None => empty
14
+ | None => null
15
15
}
Original file line number Diff line number Diff line change @@ -4,14 +4,12 @@ external null: t<'a> = "#null"
4
4
5
5
external undefined : t <'a > = "#undefined"
6
6
7
- external empty : t <'a > = "#undefined"
8
-
9
7
external make : 'a => t <'a > = "%identity"
10
8
11
9
external toOption : t <'a > => option <'a > = "#nullable_to_opt"
12
10
13
11
let fromOption : option <'a > => t <'a > = option =>
14
12
switch option {
15
13
| Some (x ) => make (x )
16
- | None => empty
14
+ | None => undefined
17
15
}
You can’t perform that action at this time.
0 commit comments