Umi — API References - v1.3.0
Preparing search index...
umi-options
unwrapOption
Function unwrapOption
unwrapOption
<
T
>
(
option
:
Option
<
T
>
)
:
Nullable
<
T
>
Unwraps the value of an
Option
of type
T
or returns a fallback value that defaults to
null
.
Type Parameters
T
Parameters
option
:
Option
<
T
>
Returns
Nullable
<
T
>
unwrapOption
<
T
,
U
>
(
option
:
Option
<
T
>
,
fallback
:
()
=>
U
)
:
T
|
U
Unwraps the value of an
Option
of type
T
or returns a fallback value that defaults to
null
.
Type Parameters
T
U
Parameters
option
:
Option
<
T
>
fallback
:
()
=>
U
Returns
T
|
U
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Umi — API References - v1.3.0
Loading...
Unwraps the value of an Option of type
T
or returns a fallback value that defaults tonull
.