type KeysOf<T>
Returns the indices/keys that are in a tuple.
Definition
type KeysOf<T> = {
[K in keyof T]: K;
}[keyof T & number];
type KeysOf<T>
Returns the indices/keys that are in a tuple.
type KeysOf<T> = {
[K in keyof T]: K;
}[keyof T & number];