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

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

unexpected

undefined

Always undefined

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

get()

() => E

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

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

Type Parameters

Type Parameter

E