core-utils
Preparing search index...
@clipboard-health/util-ts
mapFailure
Function mapFailure
mapFailure
<
G
>
(
f
:
(
left
:
ServiceError
)
=>
G
,
)
:
<
A
>
(
result
:
ServiceResult
<
A
>
)
=>
Either
<
G
,
A
>
Alias for
mapLeft
. Note: returns an
Either
, not a ServiceResult.
Type Parameters
G
Parameters
f
:
(
left
:
ServiceError
)
=>
G
Returns
<
A
>
(
result
:
ServiceResult
<
A
>
)
=>
Either
<
G
,
A
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
core-utils
Loading...
Alias for mapLeft. Note: returns an Either, not a ServiceResult.