We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f366ee8 commit 0d3c199Copy full SHA for 0d3c199
jscomp/runtime/js.ml
@@ -66,7 +66,11 @@ type + 'a undefined
66
(** value of this type can be either [undefined] or ['a]
67
this type is the same as type [t] in {!Undefined} *)
68
69
-type + 'a nullable
+type + 'a nullable =
70
+ | Present of 'a
71
+ | Null [@as null]
72
+ | Undefined [@as undefined]
73
+[@@unboxed]
74
(** value of this type can be [undefined], [null] or ['a]
75
this type is the same as type [t] n {!Null_undefined} *)
76
0 commit comments