omit
Creates a new object by omitting specified keys from the original object.
obj
(T extends object
): The source object.keysToOmit
(K[]
): An array of keys to omit.Omit<T, Extract<K, ExistingKeys<T>>>
): A new object without the specified keys.