Type Alias: PathValue<T, P>
PathValue<
T,P> =Pextends readonly [infer First,...(infer Rest)] ?Firstextends keyofT?Restextends readonlyany[] ?PathValue<T[First],Rest> :T[First] :never:T
Defined in: object/types.ts:115
Get the type at a given path in an object.
Type Parameters
T
T
The object type
P
P extends readonly any[]
The path as a tuple of keys