onrails
GitHub
npm
Preparing search index...
@onrails/maybe
interop
toResult
Function toResult
toResult
<
T
,
E
>
(
maybe
:
Maybe
<
T
>
,
onNone
:
()
=>
E
)
:
Result
<
T
,
E
>
Lift absence into a domain error.
Type Parameters
T
E
Parameters
maybe
:
Maybe
<
T
>
onNone
:
()
=>
E
Returns
Result
<
T
,
E
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
GitHub
npm
onrails
Loading...
Lift absence into a domain error.