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:66

Represents an unexpected error of type ResultError within a CheckedError.

Type declaration

NameTypeDescriptionDefined in

expected

undefined

Always undefined.

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

unexpected

ResultError

The unexpected error value of type ResultError.

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

get()

() => ResultError

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

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

Type Parameters

Type Parameter

E