ixfx
Preparing search index...
@ixfx/guards
resultWithFail
Function resultWithFail
resultWithFail
<
TError
>
(
result
:
Result
<
any
,
TError
>
,
callback
:
(
r
:
ResultError
<
TError
>
)
=>
void
,
)
:
void
If
result
is an error, calls
callback
, passing the error. Otherwise does nothing
Type Parameters
TError
Parameters
result
:
Result
<
any
,
TError
>
callback
:
(
r
:
ResultError
<
TError
>
)
=>
void
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
ixfx
Loading...
If
result
is an error, callscallback
, passing the error. Otherwise does nothing