- Preparing search index...
- The search index is not available
monument
Type alias DeepType<T, Path>
Deep
Type
<T, Path>: T extends object ? Path extends [infer First
extends keyof T, ...(infer Rest
)] ? DeepType<T[First], Rest> : T : Path extends [] ? T : never
Picks a type of nested property.
Example
Given a complex object structure:
Use it to pick a type of nested property: