Type Alias Omit<T, K>

Omit<T, K>: Pick<T, Exclude<keyof T, K>>

Creates a new type that omits keys in union type K of a target type T.

Type Parameters

  • T
  • K extends keyof T