export type ExtractNestedValues = { [K in keyof T]: T[K] extends object ? ExtractNestedValues : T[K] }[keyof T]