Skip to content

Outcome

Outcome<T, E> = { ok: true; result: T; } | { error: E; ok: false; }

Defined in: src/core.ts:21

The result of an execution: either a value or an error. Strategies pass outcomes around instead of throwing. E is the error type when it’s known (see pipeline.settle()), unknown otherwise.

T

E = unknown