Skip to content

True Myth / test-support / unwrapErr

Function: unwrapErr() ​

unwrapErr<E>(result): E

Unwrap the contained Err error. Throws if result is Ok.

Type Parameters ​

E ​

E

Parameters ​

result ​

Result<unknown, E>

Returns ​

E