always-panic - v0.10.1
    Preparing search index...

    Type Alias IsCode<E, I, C>

    IsCode: unknown extends E
        ? AtCode<I, C>
        : E extends I
            ? CodeContent<E> extends C ? E : AtCode<E, C>
            : E extends TypedError<Code> ? never : AtCode<I, C>

    Predicate type for TypedError.is with codes, computed from the argument's type E rather than the class's wide instance type I. Same-class union members keep their own (narrow) instantiation, which is what lets the false branch of is subtract a matched member from a distributed union — like === narrowing on a discriminant — instead of comparing every member against the wide class type and removing nothing. Falls back to the class-based AtCode for unknown and other non-member inputs; members of other TypedError classes never match.

    Type Parameters