import { provide } from 'inversify-binding-decorators' ; import TYPES from '../constant/types' ; interface IUser { email : string ; name : string ; _id ? : string ; } @ provide ( TYPES . User ) export class User implements IUser { constructor ( public email , public name , public _id ? ) { } }