Skip to main content

UnexpectedError

@ts-rust/std


@ts-rust/std / Result / UnexpectedError

Type Alias: UnexpectedError<E>

type UnexpectedError<E> = EitherError<E> & object;

Defined in: packages/std/src/result/interface.ts:65

Represents an unexpected error of type ResultError within a CheckedError.

Type Declaration

NameTypeDescriptionDefined in

expected

undefined

Always undefined.

packages/std/src/result/interface.ts:69

unexpected

ResultError

The unexpected error value of type ResultError.

packages/std/src/result/interface.ts:73

get()

() => ResultError

Retrieves the contained error value, either an expected error of type E or an unexpected ResultError.

packages/std/src/result/interface.ts:78

Type Parameters

Type Parameter

E