type KeyOf<T> = IsEnumProxy<T> extends true ? T extends { [Symbol.iterator](): IterableIterator<readonly [infer K extends PropertyKey, any]>; } ? K : Exclude<Extract<keyof T, string | symbol>, WellKnownSymbols> : T extends any[] ? number : Exclude<Extract<keyof T, string | symbol>, WellKnownSymbols>
Extracts the keys of an object type, returning numeric indices for array types or string/symbol keys excluding ignored keys for objects