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>
22
33external asNullable : t <'a > => Core__Nullable .t <'a > = "%identity"
44
5- external empty : t <'a > = "#null"
5+ external null : t <'a > = "#null"
66
77external make : 'a => t <'a > = "%identity"
88
@@ -11,5 +11,5 @@ external toOption: t<'a> => option<'a> = "#null_to_opt"
1111let fromOption : option <'a > => t <'a > = option =>
1212 switch option {
1313 | Some (x ) => make (x )
14- | None => empty
14+ | None => null
1515 }
Original file line number Diff line number Diff line change @@ -4,14 +4,12 @@ external null: t<'a> = "#null"
44
55external undefined : t <'a > = "#undefined"
66
7- external empty : t <'a > = "#undefined"
8-
97external make : 'a => t <'a > = "%identity"
108
119external toOption : t <'a > => option <'a > = "#nullable_to_opt"
1210
1311let fromOption : option <'a > => t <'a > = option =>
1412 switch option {
1513 | Some (x ) => make (x )
16- | None => empty
14+ | None => undefined
1715 }
You can’t perform that action at this time.
0 commit comments