import { type FieldPathByValue } from "https://deno.land/x/netzo@0.5.70/deps/react-hook-form.ts";
Type which eagerly collects all paths through a fieldType that matches a give type
Examples
Example 1
Example 1
FieldPathByValue<{foo: {bar: number}, baz: number, bar: string}, number>
= 'foo.bar' | 'baz'
Type Parameters
TFieldValues extends FieldValues
definition: [Key in FieldPath<TFieldValues>]: FieldPathValue<TFieldValues, Key> extends TValue ? Key : never[FieldPath<TFieldValues>]