├── .editorconfig ├── .gitattributes ├── .github └── workflows │ └── ci.yml ├── .gitignore ├── .npmignore ├── .prettierrc ├── .vscode ├── launch.json ├── settings.json └── tasks.json ├── CHANGELOG.md ├── LICENSE ├── README.md ├── eslint.config.js ├── package.json ├── src ├── InjectorImpl.ts ├── api │ ├── CorrespondingType.ts │ ├── Disposable.ts │ ├── Injectable.ts │ ├── InjectionTarget.ts │ ├── InjectionToken.ts │ ├── Injector.ts │ ├── Scope.ts │ └── TChildContext.ts ├── errors.ts ├── index.ts ├── tokens.ts ├── tsconfig.json └── utils.ts ├── stryker.conf.json ├── test ├── helpers │ ├── Task.ts │ └── initSinon.ts ├── integration │ ├── memory-leak-worker.ts │ ├── memory-leak.it.spec.ts │ └── typed-inject.it.spec.ts ├── tsconfig.json └── unit │ ├── Injector.spec.ts │ └── errors.spec.ts ├── testResources ├── dependency-graph-as-const.ts ├── dependency-graph.ts ├── forgot-tokens-class.ts ├── forgot-tokens-function.ts ├── injector-too-variant.ts ├── long-dependency-graph.ts ├── override-token-should-change-type.ts ├── tokens-of-interfaces.ts ├── tokens-of-type-string.ts ├── unknown-token.ts └── wrong-order-tokens.ts ├── tsconfig.base.json └── tsconfig.json /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/.editorconfig -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/.gitattributes -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/.npmignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { "singleQuote": true } 2 | -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /.vscode/tasks.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/.vscode/tasks.json -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/README.md -------------------------------------------------------------------------------- /eslint.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/eslint.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/package.json -------------------------------------------------------------------------------- /src/InjectorImpl.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/src/InjectorImpl.ts -------------------------------------------------------------------------------- /src/api/CorrespondingType.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/src/api/CorrespondingType.ts -------------------------------------------------------------------------------- /src/api/Disposable.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/src/api/Disposable.ts -------------------------------------------------------------------------------- /src/api/Injectable.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/src/api/Injectable.ts -------------------------------------------------------------------------------- /src/api/InjectionTarget.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/src/api/InjectionTarget.ts -------------------------------------------------------------------------------- /src/api/InjectionToken.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/src/api/InjectionToken.ts -------------------------------------------------------------------------------- /src/api/Injector.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/src/api/Injector.ts -------------------------------------------------------------------------------- /src/api/Scope.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/src/api/Scope.ts -------------------------------------------------------------------------------- /src/api/TChildContext.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/src/api/TChildContext.ts -------------------------------------------------------------------------------- /src/errors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/src/errors.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/tokens.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/src/tokens.ts -------------------------------------------------------------------------------- /src/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/src/tsconfig.json -------------------------------------------------------------------------------- /src/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/src/utils.ts -------------------------------------------------------------------------------- /stryker.conf.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/stryker.conf.json -------------------------------------------------------------------------------- /test/helpers/Task.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/test/helpers/Task.ts -------------------------------------------------------------------------------- /test/helpers/initSinon.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/test/helpers/initSinon.ts -------------------------------------------------------------------------------- /test/integration/memory-leak-worker.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/test/integration/memory-leak-worker.ts -------------------------------------------------------------------------------- /test/integration/memory-leak.it.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/test/integration/memory-leak.it.spec.ts -------------------------------------------------------------------------------- /test/integration/typed-inject.it.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/test/integration/typed-inject.it.spec.ts -------------------------------------------------------------------------------- /test/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/test/tsconfig.json -------------------------------------------------------------------------------- /test/unit/Injector.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/test/unit/Injector.spec.ts -------------------------------------------------------------------------------- /test/unit/errors.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/test/unit/errors.spec.ts -------------------------------------------------------------------------------- /testResources/dependency-graph-as-const.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/testResources/dependency-graph-as-const.ts -------------------------------------------------------------------------------- /testResources/dependency-graph.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/testResources/dependency-graph.ts -------------------------------------------------------------------------------- /testResources/forgot-tokens-class.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/testResources/forgot-tokens-class.ts -------------------------------------------------------------------------------- /testResources/forgot-tokens-function.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/testResources/forgot-tokens-function.ts -------------------------------------------------------------------------------- /testResources/injector-too-variant.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/testResources/injector-too-variant.ts -------------------------------------------------------------------------------- /testResources/long-dependency-graph.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/testResources/long-dependency-graph.ts -------------------------------------------------------------------------------- /testResources/override-token-should-change-type.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/testResources/override-token-should-change-type.ts -------------------------------------------------------------------------------- /testResources/tokens-of-interfaces.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/testResources/tokens-of-interfaces.ts -------------------------------------------------------------------------------- /testResources/tokens-of-type-string.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/testResources/tokens-of-type-string.ts -------------------------------------------------------------------------------- /testResources/unknown-token.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/testResources/unknown-token.ts -------------------------------------------------------------------------------- /testResources/wrong-order-tokens.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/testResources/wrong-order-tokens.ts -------------------------------------------------------------------------------- /tsconfig.base.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/tsconfig.base.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicojs/typed-inject/HEAD/tsconfig.json --------------------------------------------------------------------------------