NumProps
sourceGet the number of properties in T as a literal number type.
type NumProps<T> = UnionToTuple<keyof T>["length"];
Get the number of properties in T as a literal number type.
type NumProps<T> = UnionToTuple<keyof T>["length"];