Class InjectorContext

A InjectorContext is responsible for taking a root InjectorModule and build all Injectors.

It also can create scopes aka a sub InjectorContext with providers from a particular scope.

Hierarchy

  • InjectorContext

Constructors

Properties

buildContext: BuildContext = ...
rootModule: InjectorModule<any, InjectorModule<any, any>>
scope?: Scope

Methods

  • 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 module: InjectorModule<any, InjectorModule<any, any>>

    Returns ResolveToken<T>

Generated using TypeDoc