RobinBuschmann / react.di

Dependency injection for react based upon inversify.
97 stars 5 forks source link

Add MultiInject decorator for a more explicit usage of multi injection #3

Open RobinBuschmann opened 7 years ago

RobinBuschmann commented 7 years ago

Multi-injection is currently possible via type annotations. Which means, if the annotated type is of type Array the injection will automatically processed as a multi-injection: @Inject(TOKEN) items: SomeInterface[]. For a more explicit usage a MultiInject decorator should be implemented.