Omit
type Omit<T, K> = Pick<T, Exclude<keyof T, K>>;
Construct a type with the properties of T except for those in type K.
Type Parameters
| Type Parameter |
|---|
T |
K extends keyof any |
type Omit<T, K> = Pick<T, Exclude<keyof T, K>>;
Construct a type with the properties of T except for those in type K.
| Type Parameter |
|---|
T |
K extends keyof any |