import { injectable } from 'inversify' ; interface IUser { email : string ; name : string ; _id ? : string ; } @ injectable ( ) export class User implements IUser { constructor ( public email , public name , public _id ? ) { } }