onrails
    Preparing search index...

    Type Alias ExhaustiveResult<T, Handled, R, HasInput>

    ExhaustiveResult: IsExhaustive<T, Handled> extends true
        ? ExhaustiveOutput<R, HasInput, T>
        : NonExhaustiveError<RemainingCases<T, Handled>>

    .exhaustive() return type — NonExhaustiveError when cases are missing.

    Type Parameters

    • T
    • Handled extends readonly unknown[]
    • R
    • HasInput extends boolean