Type Alias KeyCount<T>

KeyCount<T>: 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