Module Caml_option

type nested = {
  1. depth : int;
}
val nullable_to_opt : 'a Js.null_undefined -> 'a option
val undefined_to_opt : 'a Js.undefined -> 'a option
val null_to_opt : 'a Js.null -> 'a option
val isNested : Bs_stdlib_mini.Obj.t -> bool
type poly
val option_unwrap : poly option -> Bs_stdlib_mini.Obj.t

When it is None, return none When it is (Some (`a 3)) return 3