typeorm-di
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

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` 

Readme

Keywords

Package Sidebar

Install

npm i typeorm-di

Weekly Downloads

1

Version

0.0.4

License

MIT

Unpacked Size

5.28 kB

Total Files

5

Last publish

Collaborators

  • mildronize