typedi
typedi copied to clipboard
Simple yet powerful dependency injection tool for JavaScript and TypeScript.
**I was trying to...** inject a private property:  **The problem:** I'm getting the TypeScript error: "Decorators are not valid here"
### Description I'm reading docs here [github docs](https://github.com/typestack/typedi/tree/develop/docs) and I find that function dependency injection examples does not work and **Service** decorator does not accept function arg. **Minimal code-snippet showcasing...
As mentioned in the title, all container-related features have been deprecated since 0.3.0. Is there any other way to use TypeDi with Typeorm without calling `Typeorm.useContainer()` ?
Hi, I'm trying to use typedi on my project which is written by typescript and build it by using esbuild. After build bundle using esbuild, there no source code I...
### Description Hi! I think you should expand your documentation by adding a point about enabling `"importsNotUsedAsValues": "preserve"` in `tsconfig.json`. By default typescript removes unused imports, so if class is...
## Description ## Checklist - [x] the pull request title describes what this PR does (not a vague title like `Update index.md`) - [x] the pull request targets the *default*...
I'm currently using typedi in an HTTP application and I'm creating a scoped container per request to ensure there's no bleed from other requests that are in flight. At the...
**Description** I updated the typedi version in my project and now I'm getting this error: `ServiceNotFoundError: Service with "MaybeConstructable" identifier was not found in the container. Register it before usage...
### Description When a TypeDI resolves cyclic but otherwise known parameter dependencies it will silently inject undefined in the constructor and assign the proper value to the property later after...
### Description If non-injected array parameter exist in class constructor, TypeDI throws error. **Minimal code-snippet showcasing the problem** ```ts import 'reflect-metadata'; import Container, { Inject, Service, Token } from 'typedi';...