import { Container } from "inversify" ; import { Repository } from "typeorm" ; import { IUserRepository , UserRepository } from "../repositories" ; import bindRepositories from "./repositories.bind" ; import { REPOSITORY_TYPES } from "./types" ; const container = new Container ( ) ; container . bind < IUserRepository > ( REPOSITORY_TYPES . IUserRepository ) . to ( UserRepository ) . inSingletonScope ( ) ; export default container ;