Type alias DeepOmit<T, K>

DeepOmit<T, K>: UnionToIntersection<K extends `${infer Pre}.${infer Post}`
    ? {
        [Key in Pre]: DeepOmit<T[Pre], Post>
    }
    : never> & {
    [Key in Exclude<keyof T, K | (K extends `${infer Pre}.${infer _}`
        ? Pre
        : never)>]: T[Key]
}

Type Parameters

  • T extends Record<any, any>

  • K extends DeepKeys<T>

Generated using TypeDoc