0.0.4 • Published 4 years ago

typeorm-di v0.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

TypeORM + TypeDI

Build Status

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

  1. Install the module

    npm install typeorm-di 
  2. 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` 
0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago