@mikuroxina/mini-fn
Preparing search index...
Result
mapErr
Function mapErr
mapErr
<
E
,
F
>
(
fn
:
(
t
:
E
)
=>
F
,
)
:
<
T
>
(
res
:
Result
.
Result
<
E
,
T
>
)
=>
Result
.
Result
<
F
,
T
>
Maps the function onto
Result<_, T>
.
Type Parameters
E
F
Parameters
fn
:
(
t
:
E
)
=>
F
The function from
E
to
F
.
Returns
<
T
>
(
res
:
Result
.
Result
<
E
,
T
>
)
=>
Result
.
Result
<
F
,
T
>
The mapped function.
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@mikuroxina/mini-fn
Loading...
Maps the function onto
Result<_, T>.