type EntryOf<T> = T extends readonly any[] ? [number, T[number]] : { [K in KeyOf<T> & PropertyKey]-?: [K, T[K & keyof T]]; }[KeyOf<T> & PropertyKey]
Constructs a correlated tuple union representing a key-value entry pair from an object, enum, or array
Constructs a correlated tuple union representing a key-value entry pair from an object, enum, or array