expect

function expect
packages/shared/src/result.ts:20
expect<T, E>(result: Result<T, E>, message: string) → T

Unwrap, throwing on failure. For tests and for call sites that have already checked.

resultResult<T, E>
Undocumented
messagestring
Undocumented
ReturnsT