Skip to content

API Reference / @gtkx/forms / PathValue

Type Alias: PathValue<T, P>

PathValue<T, P> = PathValueImpl<T, P>

Defined in: node_modules/.pnpm/react-hook-form@7.86.0_react@19.2.8/node_modules/react-hook-form/dist/types/path/eager.d.ts:89

Type to evaluate the type which the given path points to.

Type Parameters

T

T

deeply nested type which is indexed by the path

P

P extends Path<T> | ArrayPath<T>

path into the deeply nested type

Example

PathValue<{foo: {bar: string}}, 'foo.bar'> = string
PathValue<[number, string], '1'> = string

Released under the MPL-2.0 License.