export type NestedKey = { [K in Extract]: O[K] extends Array ? K : O[K] extends any ? `${K}` | `${K}.${NestedKey}` : K; }[Extract];