typedi
typedi copied to clipboard
Simple yet powerful dependency injection tool for JavaScript and TypeScript.
Im trying to test some global standalone classes injected in my code, Im new to Typedi, I really like it, but the lack of documentation is killing me. My problem...
### Description Constructor Injection fail in vitest/jest Injected with instance ContainerInstance ```ts import 'reflect-metadata'; //import {expect, test} from "vitest" import {expect, test} from '@jest/globals'; import { Container, Inject, Service, ServiceOptions,...
```ts @Service() export class Foo { @InjectMany(BarToken) private bar!: TokenInferMany; } ```
Following some comments here on how to pass arguments to constructors on top of the injected properties, I'm using Token to do it as mentonned. In my case, my class...
**I was trying to...** I was trying to use typedi with monorepo, where we have a common repo where we place some common stuff between other repos, so there are...
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 27.9.0 to 28.4.0. Release notes Sourced from eslint-plugin-jest's releases. v28.4.0 28.4.0 (2024-05-03) Features valid-expect: supporting automatically fixing missing await in some cases (#1574) (a407098) v28.3.0 28.3.0 (2024-04-27)...
Bumps [eslint](https://github.com/eslint/eslint) from 8.57.0 to 9.1.1. Release notes Sourced from eslint's releases. v9.1.1 Bug Fixes a26b402 fix: use @eslint/create-config latest (#18373) (唯然) v9.1.0 Features 03068f1 feat: Provide helpful error message...
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 27.9.0 to 28.5.0. Release notes Sourced from eslint-plugin-jest's releases. v28.5.0 28.5.0 (2024-05-03) Features allow @typescript-eslint/utils v7 as a direct dependency (#1567) (1476f10) v28.4.0 28.4.0 (2024-05-03) Features valid-expect:...
Bumps [eslint](https://github.com/eslint/eslint) from 8.57.0 to 9.2.0. Release notes Sourced from eslint's releases. v9.2.0 Features 8485d76 feat: no-case-declarations add suggestions (#18388) (Josh Goldberg ✨) a498f35 feat: update Unicode letter detection in...
Bumps [eslint](https://github.com/eslint/eslint) from 8.57.0 to 9.6.0. Release notes Sourced from eslint's releases. v9.6.0 Features e2b16e2 feat: Implement feature flags (#18516) (Nicholas C. Zakas) 8824aa1 feat: add ecmaVersion: 2025, parsing duplicate...