Skip to main content

ExpectedError

@ts-rust/std


@ts-rust/std / Result / ExpectedError

Type Alias: ExpectedError<E>

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

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

Represents an expected error of type E within a CheckedError.

Type declaration

NameTypeDescriptionDefined in

expected

E

The expected error value of type E.

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

unexpected

undefined

Always undefined

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

get()

() => E

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

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

Type Parameters

Type Parameter

E