Type that recursively omits specified nested properties from an object type.
The input object type.
A string literal representing the path of properties to omit (e.g., 'person.name.value').
type T = a: { b: string; b2: { c: { d: number; }; }; };}DeepOmit<T, 'a.b2.c'> // Results in: { a: { b: string; b2: {} } } Copy
type T = a: { b: string; b2: { c: { d: number; }; }; };}DeepOmit<T, 'a.b2.c'> // Results in: { a: { b: string; b2: {} } }
Type that recursively omits specified nested properties from an object type.