@illavv/run_typer - v4.1.0
    Preparing search index...

    Type Alias DiscriminatedUnion<Key, V, R>

    DiscriminatedUnion: {
        [K in keyof V & string]: Prettify<{ [P in Key]: K } & Infer<V[K], R>>
    }[keyof V & string]

    The type produced by discriminatedUnion: one member per variant, each carrying its own discriminant as a literal.

    Type Parameters

    • Key extends string

      The discriminant key

    • V

      The variants, keyed by discriminant value

    • R extends TypeRegistry = {}

      Custom aliases registered on the instance, if any