import { Types } from "mongoose";

//#region src/utils/mongoDB/types.d.ts
type RenameId<T extends {
  id: Types.ObjectId;
}> = Omit<T, 'id'> & {
  _id: T['id'];
};
type OmitId<T extends {
  id?: any;
  _id?: any;
}> = Omit<T, 'id | _id'>;
//#endregion
export { OmitId, RenameId };
//# sourceMappingURL=types.d.ts.map