server-reason-react.js
Js.Undefined
browser_ppx
melange_native_ppx
rsc_js_ppx
rsc_native_ppx
server-reason-react.base32
server-reason-react.belt
server-reason-react.dom
server-reason-react.fetch
server-reason-react.html
server-reason-react.promise-js
server-reason-react.promise-native
server-reason-react.react
server-reason-react.react-server-dom-esbuild
server-reason-react.reactDom
server-reason-react.rsc
server-reason-react.rsc-native
server-reason-react.rsc-ppx-common
server-reason-react.runtime
server-reason-react.styles-attribute
server-reason-react.url_js
server-reason-react.url_native
server-reason-react.webapi
server-reason-react.xxhash
server_reason_react_ppx
type 'a t = 'a option
val return : 'a -> 'a t
val empty : 'a option
val toOption : 'a t -> 'a option
val fromOpt : 'a option -> 'a t
val getExn : 'a t -> 'a
Js_exn.Error
with message "Js.Undefined.getExn" when the value is empty, like Melange.
val getUnsafe : 'a t -> 'a
val map : f:('a -> 'b) -> 'a t -> 'b t
val bind : f:('a -> 'b t) -> 'a t -> 'b t
val iter : f:('a -> unit) -> 'a t -> unit
val testAny : 'a -> bool
Requires JS runtime type tags: natively there is no way to check whether an arbitrary value is undefined.
undefined
val fromOption : 'a option -> 'a t
val from_opt : 'a option -> 'a t