1.5.0 • Published 6 years ago

ts-di-modules v1.5.0

Weekly downloads
3
License
MIT
Repository
gitlab
Last release
6 years ago

Overview

Minimalist dependency injection framework for typescript. Create modules and define providers (services, handlers etc) to use within the scope of a module. Also import modules and export providers to connect modules together - similar to the DI architecture in Angular.

Important to notice from v1.4.2

Removed possibility of importing and exporting modules as it only increases complexity and bugs. Keeping it simple and using a root module for providers now, so create providers in sub-folders as you like, and create i.e. an export file with the providers in an array. Use i.e. the spread operator to import them in the module. (see updated example here).

Example

https://gitlab.com/oleklokkhammer/ts-di-modules/ts-di-modules-example

Requirements

Typescript projects

This project requires the following tsconfig options to be set for typescript:

  • "experimentalDecorators": true,
  • "emitDecoratorMetadata": true,

React etc through babel plugin

1.5.0

6 years ago

1.4.2

6 years ago

1.4.1

6 years ago

1.4.0

6 years ago

1.3.9

6 years ago

1.3.8

6 years ago

1.3.7

6 years ago

1.3.6

6 years ago

1.3.5

6 years ago

1.3.4

6 years ago

1.3.3

6 years ago

1.3.2

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.9

6 years ago

1.2.8

6 years ago

1.2.7

6 years ago

1.2.6

6 years ago

1.2.5

6 years ago

1.2.4

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.9

6 years ago

1.1.8

6 years ago

1.1.7

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago