Skip to content

InjectionToken

reference
1 min readUpdated

Kind: Type

Source: packages/common/interfaces/modules/injection-token.interface.ts

Part of: Common

Definition

ts
| string | symbol | Type<T> | Abstract<T> | Function

Used by

16 references from 16 files. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.

Imported by (16)

  • moduleNamepackages/core/middleware/container.ts:68
  • handlerpackages/core/middleware/middleware-module.ts:287
  • handlerpackages/core/middleware/resolver.ts:18
  • getTransientInstancespackages/core/injector/helpers/transient-instances.ts:9
  • InjectorDependencypackages/core/injector/injector.ts:51
  • InstanceLinkpackages/core/injector/instance-links-host.ts:10
  • INSTANCE_METADATA_SYMBOLpackages/core/injector/instance-wrapper.ts:22
  • Modulepackages/core/injector/module.ts:44

…and 8 more.

Was this page helpful?

Download as PDF
InjectionToken — NestJS head-to-head