Omit
type Omit<T, K> = Pick<T, Exclude<keyof T, K>>;
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1630
Construct a type with the properties of T except for those in type K.
Type Parameters
Section titled “Type Parameters”Type Parameter |
---|
T |
K extends keyof any |