Master programming syntax, solve interactive challenges & run live code in Syntaxis Explore Arena →
Reference / TypeScript

Omit<Type, Keys>

Constructs a type by picking all properties from Type and then removing Keys.

Syntax
type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>

Parameters

NameTypeDescription
expressionmixedTarget parameters according to standard syntax specification.

Examples

Working Omit<Type, Keys> usage example
// Example for Omit<Type, Keys>
// Standard verified syntax construct
console.log('Omit<Type, Keys> initialized');
Standard TypeScript language feature verified across modern versions.