MicroHack-Registrations-RestAPI / src / types / User.d.ts
User.d.ts
Raw

declare interface UserAuthI {
    email: string;
    password: string;
}

declare interface UserI  extends UserAuthI{
	firstName: string;
	lastName: string;
    role: string;
}


type OptimizedUser = Omit<UserI, "password"> & { _id: string };