Properties
Readonly isPresent
isPresent: boolean
Methods
get
Returns T
map
- map<U>(f: ((value: T) => U)): Optional<U>
Type Parameters
Parameters
orElse
Parameters
Returns T
toString
Returns string
Static empty
Type Parameters
Static of
Type Parameters
Parameters
An optional value of type T.
Construct using Optional.of or Optional.empty.
Collabs uses this utility type in places where
T | undefined
orT | null
is inappropriate because T may itself be null/undefined.Local data structure - not a Collab.