API Reference / @evolu/common / Type / omit
Function: omit()
function omit<T, Keys>(objectType, ...keys): ObjectType<Omit<T["props"], Keys>>;
Defined in: packages/common/src/Type.ts:3654
Create a new object
Type by omitting some keys.
Type Parameters
Type Parameter |
---|
T extends ObjectType <any > |
Keys extends string | number | symbol |
Parameters
Parameter | Type |
---|---|
objectType | T |
...keys | readonly Keys [] |
Returns
ObjectType
<Omit
<T
["props"
], Keys
>>