Skip to main content
Skip to main content

Omit

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

Construct a type with the properties of T except for those in type K.

Type parameters

TobjectRequired
Kkeyof anyRequired
Was this section helpful?