API Reference / @gtkx/forms / PathValue
Type Alias: PathValue<T, P>
PathValue<
T,P> =PathValueImpl<T,P>
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