Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

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>>;

§Type Parameters

§
TFieldValues extends FieldValues
[src]
§
TPath extends FieldPath<TFieldValues>[] | readonly FieldPath<TFieldValues>[]
[src]

§Type

§
{} & [K in keyof TPath]: FieldPathValue<TFieldValues, TPath[K] & FieldPath<TFieldValues>>
[src]