typeorm-di
v0.0.4
Published
It's just TypeORM, TypeDI and typeorm-typedi-extensions wrapper.
Downloads
12
Readme
TypeORM + TypeDI
It's just TypeORM, TypeDI and typeorm-typedi-extensions wrapper.
You can import all from one place :)
e.g.
import { Connection, createConnection, useContainer , Container} from "typeorm-di";
For the usage, you can read on the TypeORM, TypeDI and typeorm-typedi-extensions documentations.
Installation
Install the module
npm install typeorm-di
Install all dependencies (Peer)
npm install typeorm typedi typeorm-typedi-extensions reflect-metadata
For building
npm install typeorm typedi typeorm-typedi-extensions reflect-metadata @types/node
npm build
Docs
There is only one object that duplicate between TypeORM
and TypeDI
: ObjectType
In case you want to use ObjectType
import { ObjectType } from "typeorm-di"; // from `TypeORM`
import { ObjectTypeDI } from "typeorm-di"; //from `TypeDI`