any ? EvaluateKey<T, K> extends U ? K : never : never type T1 = CheckKeyConstraint<{ foo: string, bar: number }, 'foo' | 'bar', string> // ‘foo’ https://github.com/react-hook-form/react-hook-form/blob/v7.51.5/src/types/path/common.ts#L307
U) => any : never ) extends (_: infer I) => any ? I : never type T1 = UnionToIntersection<{foo: string} | { bar: number }> // { foo: string } & { bar: number } https://github.com/react-hook-form/react-hook-form/blob/v7.51.5/src/types/path/common.ts#L72 https://stackoverflow.com/questions/50374908/transform-union-type-to-intersection-type/50375286#50375286