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.

mapErr

function mapErr<T, E, F>(r, fn): Result<T, F>;

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

Transform the error; a success passes through untouched.

Type Parameter
T
E
F
ParameterType
rResult<T, E>
fn(error) => F

Result<T, F>