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

    0.25.0 • Public • Published

    tsdi

    Github Workflow npm GitHub license codecov renovate badge

    Easy dependency injection for TypeScript.

    Features

    • Type based dependency injection
    • Type auto registration
    • Lifecycle methods
    • Constructor parameters injection
    • Singletons and Instances
    • External components (components not managed by tsdi)
    • Scopes

    Installation

    Install as npm package:

    $ yarn add tsdi

    or

    npm install tsdi --save

    You need to enable decorator metadata in your tsconfig.json, which is done by adding the following line:

    "emitDecoratorMetadata": true
    

    Otherwise TSDI will not be able to infer the types of some factories and components.

    Documentation

    See https://tsdi.js.org/


    Released under MIT license - (C) 2018 Markus Wolf

    Keywords

    none

    Install

    npm i tsdi

    DownloadsWeekly Downloads

    92

    Version

    0.25.0

    License

    MIT

    Unpacked Size

    349 kB

    Total Files

    62

    Last publish

    Collaborators

    • knisterpeter