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>, IgnoreOf<T>> : T extends any[] ? number : Exclude<Extract<keyof T, string | symbol>, IgnoreOf<T>>
Extracts the keys of an object type, returning numeric indices for array types or string/symbol keys excluding ignored keys for objects