Skip to content

Commit f366ee8

Browse files
committed
untagged variant for nullable
1 parent b5ff62b commit f366ee8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

jscomp/others/js.ml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,12 @@ type +'a undefined
9696
A value of this type can be either undefined or 'a. This type is equivalent to Js.Undefined.t.
9797
*)
9898

99-
type +'a nullable
99+
type +'a nullable =
100+
| Present of 'a
101+
| Null [@as null]
102+
| Undefined [@as undefined]
103+
[@@unboxed]
104+
100105
(**
101106
A value of this type can be undefined, null or 'a. This type is equivalent to Js.Null_undefined.t.
102107
*)

0 commit comments

Comments
 (0)