- omit<K>(keys): (<O>(obj: O) => Or<IsWide<string, K>, IsWide<number, K>> extends true
? Partial<O>
: Omit<O, K>) Type Parameters
- K extends string | number
Returns (<O>(obj: O) => Or<IsWide<string, K>, IsWide<number, K>> extends true
? Partial<O>
: Omit<O, K>)
- <O>(obj): Or<IsWide<string, K>, IsWide<number, K>> extends true
? Partial<O>
: Omit<O, K> Type Parameters
- O extends Record<K, unknown>
Returns Or<IsWide<string, K>, IsWide<number, K>> extends true
? Partial<O>
: Omit<O, K>
Returns a new object with the specified keys omitted.
Example