Skip to content

fx-flow v0.7.0 / flow / mapErr

Function: mapErr()

mapErr(fn, result)

mapErr<A, R>(fn, result): ReturnValue<A, R>

Type parameters

A

R extends MaybePromise<string>

Parameters

fn

result: Result<A>

Returns

ReturnValue<A, R>

Source

packages/core/src/flow/mapErr.ts:18

mapErr(fn)

mapErr<A, R>(fn): (result) => ReturnValue<A, R>

Type parameters

A

R extends MaybePromise<string>

Parameters

fn

Returns

Function

Parameters

result: Result<A>

Returns

ReturnValue<A, R>

Source

packages/core/src/flow/mapErr.ts:19

Released under the MIT License.