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).
Create a union of all keys from a given type, even those exclusive to specific union members. Unlike the native
keyofkeyword, which returns keys present in all union members, this type returns keys from any member.Copied from the
KeysOfUniontype in thetype-festpackage so that this package's public types do not depend ontype-fest(see the note intype-checks.ts).