Skip to content

isErr

isErr<E, A>(state): state is Err<E>

Defined in: Core/Op.ts:623

Returns true if the state is Err (the operation failed with a typed error).

E

A

State<E, A>

state is Err<E>

manager.subscribe(state => {
  if (Op.isErr(state)) showError(state.error);
});