augment-vir - v32.2.2
    Preparing search index...

    Type Alias KeysOfUnion<ObjectType>

    KeysOfUnion: keyof UnionToIntersection<
        ObjectType extends unknown ? Record<keyof ObjectType, never> : never,
    >

    Create a union of all keys from a given type, even those exclusive to specific union members. Unlike the native keyof keyword, which returns keys present in all union members, this type returns keys from any member.

    Copied from the KeysOfUnion type in the type-fest package so that this package's public types do not depend on type-fest (see the note in type-checks.ts).

    Type Parameters

    • ObjectType