pronotron-tech-art-suite
    Preparing search index...

    Type Alias KeysOfUnion<U>

    KeysOfUnion: U extends any ? keyof U : never

    Extracts all unique keys from every member of a union type.

    Example: type U = { a: number } | { b: string }; KeysOfUnion → "a" | "b"

    Type Parameters

    • U