Type Alias KeyCount<T>

KeyCount: UnionToTuple<keyof T>["length"]

Counts the number of unique keys in an object type. Note that a key of just string will count as 1.

Type Parameters