FieldPathValues
Type to evaluate the type which the given paths point to.
@example
FieldPathValues<{foo: {bar: string}}, ['foo', 'foo.bar']>
= [{bar: string}, string]
type FieldPathValues<TFieldValues extends FieldValues, TPath extends FieldPath<TFieldValues>[] | readonly FieldPath<TFieldValues>[]> = {} & [K in keyof TPath]: FieldPathValue<TFieldValues, TPath[K] & FieldPath<TFieldValues>>;