export const omit = (obj: T, ...fields: K[]): Partial => { const copy = { ...obj }; fields.forEach((field) => delete copy[field]); return copy; };