Class Injector

This is the actual dependency injection container. Every module has its own injector.

Reflection

never

Hierarchy

  • Injector

Implements

Constructors

Properties

module: InjectorModule<any, InjectorModule<any, any>>

Methods

  • Parameters

    • options: {
          name: string;
          optional: boolean;
          type: Type;
      }
      • name: string
      • optional: boolean
      • type: Type
    • fromProvider: NormalizedProvider<any>
    • compiler: CompilerContext
    • resolveDependenciesFrom: InjectorModule<any, InjectorModule<any, any>>[]
    • ofName: string
    • argPosition: number
    • notFoundFunction: string

    Returns string

  • Type Parameters

    • T

    Parameters

    • Optional token: string | number | bigint | boolean | symbol | RegExp | TypeObjectLiteral | TypeNever | TypeAny | TypeUnknown | TypeVoid | TypeObject | TypeString | TypeNumber | TypeBoolean | TypeBigInt | TypeSymbol | TypeNull | TypeUndefined | TypeLiteral | TypeTemplateLiteral | TypeParameter | TypeFunction | TypeMethod | TypeProperty | TypePromise | TypeClass | TypeEnum | TypeEnumMember | TypeUnion | TypeIntersection | TypeArray | TypeIndexSignature | TypePropertySignature | TypeMethodSignature | TypeTypeParameter | TypeInfer | TypeTuple | TypeTupleMember | TypeRest | TypeRegexp | Packed | T | ClassType<T> | AbstractClassType<T>
    • Optional scope: Scope

    Returns ResolveToken<T>

  • Type Parameters

    • T

    Parameters

    • token: any
    • Optional scope: string

    Returns number

Generated using TypeDoc