CheckedError
@ts-rust/std / Result / CheckedError
Type Alias: CheckedError<E>
type CheckedError<E> = ExpectedError<E> | UnexpectedError<E>;
Defined in: packages/std/src/result/interface.ts:91
A type representing the error state of a Result, containing either
an expected error of type E
or an unexpected ResultError.
This type ensures exactly one error is present: either an expected error
(an anticipated failure of type E
) or an unexpected error (a runtime or
exceptional failure). Use isExpected or
isUnexpected to narrow the type if needed.
Type Parameters
Type Parameter |
---|
|