type alias PathValueimport { type PathValue } from "https://deno.land/x/netzo@0.5.30/deps/react-hook-form.ts"; Type to evaluate the type which the given path points to. ExamplesExample 1 PathValue<{foo: {bar: string}}, 'foo.bar'> = string PathValue<[number, string], '1'> = string Type ParametersTP extends Path<T> | ArrayPath<T>definition: T extends any ? P extends `${infer K}.${infer R}` ? K extends keyof T ? R extends Path<T[K]> ? PathValue<T[K], R> : never : K extends `${ArrayKey}` ? T extends ReadonlyArray<infer V> ? PathValue<V, R & Path<V>> : never : never : P extends keyof T ? T[P] : P extends `${ArrayKey}` ? T extends ReadonlyArray<infer V> ? V : never : never : never