InversifyJS
InversifyJS copied to clipboard
A powerful and lightweight inversion of control container for JavaScript & Node.js apps powered by TypeScript.
## Expected Behavior Work in esm env ## Current Behavior ``` console.log { default: [Function: getDecorators] } ``` This means ``` import { Container } from 'inversify'; import getDecorators from...
I'm going to use stage 3 decorator in my typescript project with inversify, but can't not use stage 2 and stage 3 decorator at the same time.Any plan to support...
fix: include source-map related files ## Description In Wepack5+, deps using source map but published exclude those files will receive lots of warnings. ## Related Issue ## Motivation and Context...
`toDynamicValueWithDeps` method binds an abstraction to a dynamic value with required dependencies from the container in a declarative way. ## Description I've addded `toDynamicValueWithDeps` method into BindingToSyntax class which basically...
Different aspects of this have been covered in many forums, but I'd like to revisit to get some clarity and current thoughts. Is there no way the library can be...
``` @injectable() class Ninja implements Warrior { @inject(TYPES.Weapon) private _katana: Weapon; @inject(TYPES.ThrowableWeapon) private _shuriken: ThrowableWeapon; public fight() { return this._katana.hit(); } public sneak() { return this._shuriken.throw(); } } ``` ```...
## Expected Behavior Generally IoC container allow self injection. I will demonstrate in C#. This is to demonstrate that this approach is common and supported by other frameworks (example below...
I am using inversify with inverse-express-utils for our node web application. ## Expected Behavior Given I have a controller that has a route handler for `GET /foo`, when I go...
I am trying to build game using inversifyJS An issue occurs when i try to inject some dependency to the class using @inject() method ( /view/screen.view.ts on the 15th line)...
## Expected Behavior From the README: > Middleware extending `BaseMiddleware` is capable of re-binding services in the scope of a HTTP request. Bindings made using `BaseMiddleware.bind` should be scoped to...