Deeply pick properties from a nested object type.
The target object.
A dot-separated string literal representing the path of properties to pick.
type T = { one: string; two: { a: boolean; b: null; c: 'c' | 'C'; }; thee: number;};DeepPick<T, 'two.c'> // Results in:{ two: { c: 'c' | 'C'; }; } Copy
type T = { one: string; two: { a: boolean; b: null; c: 'c' | 'C'; }; thee: number;};DeepPick<T, 'two.c'> // Results in:{ two: { c: 'c' | 'C'; }; }
Deeply pick properties from a nested object type.