InversifyJS icon indicating copy to clipboard operation
InversifyJS copied to clipboard

A powerful and lightweight inversion of control container for JavaScript & Node.js apps powered by TypeScript.

Results 173 InversifyJS issues
Sort by recently updated
recently updated
newest added

I believe I have everything set up correctly but `@inject` is failing to inject into the class constructor with the error: `Missing required @inject or @multiInject annotation in: argument 0...

## Expected Behavior @injectable() export class InformService implements IInformService { private _informHttpClient: InformHttpClient; public constructor(@inject(TYPES.InformHttpClient) informHttpClient: interfaces.Newable) { this._informHttpClient = new informHttpClient(environment.informConfigurationEndPoint); } I expect at runtime to be able...

Seems to be an inaccuracy in the Post Construct Decorator description (implementation seems correct) ## Description * `use()` returned a string, no visible side-effect → updated to `console.log()` * `testMethod()`...

When you inject an object with a property of `.then` but its not a promise, it resolves to undefined. This is because when resolving it believes that its a `promise`...

## Description Used `instance of Promise instead`. Struggled and unsure with the approached used to mock the promise stub in the modified test. Welcome for any feedback and ideas ##...

## Expected Behavior Imagine having an API that handles creating game data and returns the created user information. For example: @httpPost("/",`` { description: "create a game" }) async createGame(@requestBody() gameData:...

## Expected Behavior When using InversifyJS with the singleton pattern and explicit dependency injection: 1. The performance should remain consistent regardless of the order of dependencies in the list. 2....

## Description This is a non-breaking change, affecting only TypeScript types, and doesn't change the implementation in any way. ### Motivation `inversify` already has some basic support for types when...

Don't know if it's because you need to hook up a tag to the latest commit, but the `withMiddleware` function is still not available at latest `inversify-express-utils` version `6.4.6`

Consider this syntactically correct code: ```typescript @injectable() class Sample { @inject(InjectionTypes.Dependency) // where IT.D is actually a class dependency: number; } ``` I've made subtle mistakes around this enough to...