type ValueOf<T> = IsEnumProxy<T> extends true ? T extends { [Symbol.iterator](): IterableIterator<readonly [any, infer V]>; } ? V : T[KeyOf<T> & keyof T] : T extends readonly any[] ? T[number] : T[KeyOf<T> & keyof T]
Extracts the value types from an object or array (including readonly arrays)
Extracts the value types from an object or array (including readonly arrays)