interface IEmail { address: string; verified: boolean; } interface IProfile { username: string; language: string; active: boolean; name: string; type?: 'internal' | 'external'; role?: string; email?: string; } interface IUser { _id: string; emails: IEmail[]; profile: IProfile; active: boolean; } export type { IProfile as I, IEmail as a, IUser as b };