Skip to content

TypeAlias.OmitDeep

github-actions[bot] edited this page Nov 18, 2026 · 13 revisions

umt / OmitDeep

Type Alias: OmitDeep<T, K>

OmitDeep<T, K> = K extends readonly [infer Head, ...(infer Tail extends readonly PropertyKey[])] ? OmitDeep<Head extends string ? OmitDeepPath<T, Head> : Omit<T, Head>, Tail> : T

Defined in: types/object/omitDeep.ts:23

Removes multiple dot-notation paths from an object type, applying each path in order.

Type Parameters

T

T

Source object type

K

K extends readonly PropertyKey[]

Tuple of dot-separated paths to remove

Example

type Result = OmitDeep<{ a: { b: 1; c: 2 }; d: 3 }, ["a.b", "d"]>;
// { a: { c: 2 } }

API

Classes

Interfaces

Type Aliases

Variables

Functions

Clone this wiki locally