typedi icon indicating copy to clipboard operation
typedi copied to clipboard

Simple yet powerful dependency injection tool for JavaScript and TypeScript.

Results 65 typedi issues
Sort by recently updated
recently updated
newest added

**I was trying to...** inject a private property: ![image](https://user-images.githubusercontent.com/35735118/180275753-288d9a0b-4dc6-42d8-a304-62a191afd60f.png) **The problem:** I'm getting the TypeScript error: "Decorators are not valid here"

type: question

### 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...

type: fix
status: needs triage

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()` ?

type: question

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...

type: question

### 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...

type: fix
status: needs triage

## 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...

type: question

**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...

type: question

### 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...

type: fix

### 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';...

type: fix
status: has PR
status: needs triage