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
| Name | Type | Description |
|---|---|---|
| expression | mixed | Target 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.