onrails
    Preparing search index...

    Type Alias ExhaustMatched<T, P>

    ExhaustMatched: P extends (input: T) => boolean
        ? [GuardTarget<P>] extends [never] ? never : Extract<T, GuardTarget<P>>
        : Extract<T, P>

    Union members of T ruled out by pattern P. Boolean guards (non-predicates) do not advance exhaustiveness — use when(isX) or .otherwise().

    Type Parameters

    • T
    • P