Skip to content

This site describes solve-engine as it is on main: 2.43.0, which npm does not have yet. npm installs 2.40.0, so a page may show an answer that version does not give yet.

map

function map<T, U, E>(r, fn): Result<U, E>;

Defined in: packages/engine/src/errors/Result.ts:56

Transform the success value; a failure passes through untouched.

Type Parameter
T
U
E
ParameterType
rResult<T, E>
fn(value) => U

Result<U, E>