Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ModuleRef

Hierarchy

  • ModuleRef

Index

Constructors

constructor

Properties

Private _instanceLinksHost

_instanceLinksHost: InstanceLinksHost

Protected Readonly container

container: NestContainer

Private Readonly injector

injector: Injector = new Injector()

Accessors

Private instanceLinksHost

Methods

Abstract create

  • create<T>(type: Type<T>): Promise<T>

Protected find

  • find<TInput, TResult>(typeOrToken: Type<TInput> | string | symbol, contextModule?: Module): TResult

Abstract get

  • get<TInput, TResult>(typeOrToken: Type<TInput> | string | symbol, options?: { strict: boolean }): TResult
  • Type parameters

    • TInput = any

    • TResult = TInput

    Parameters

    • typeOrToken: Type<TInput> | string | symbol
    • Optional options: { strict: boolean }
      • strict: boolean

    Returns TResult

Protected instantiateClass

  • instantiateClass<T>(type: Type<T>, moduleRef: Module): Promise<T>

introspect

  • introspect<T>(token: Type<T> | string | symbol): IntrospectionResult

registerRequestByContextId

  • registerRequestByContextId<T>(request: T, contextId: ContextId): void

Abstract resolve

  • resolve<TInput, TResult>(typeOrToken: Type<TInput> | string | symbol, contextId?: ContextId, options?: { strict: boolean }): Promise<TResult>
  • Type parameters

    • TInput = any

    • TResult = TInput

    Parameters

    • typeOrToken: Type<TInput> | string | symbol
    • Optional contextId: ContextId
    • Optional options: { strict: boolean }
      • strict: boolean

    Returns Promise<TResult>

Protected resolvePerContext

  • resolvePerContext<TInput, TResult>(typeOrToken: Type<TInput> | string | symbol, contextModule: Module, contextId: ContextId, options?: { strict: boolean }): Promise<TResult>
  • Type parameters

    • TInput = any

    • TResult = TInput

    Parameters

    • typeOrToken: Type<TInput> | string | symbol
    • contextModule: Module
    • contextId: ContextId
    • Optional options: { strict: boolean }
      • strict: boolean

    Returns Promise<TResult>

Generated using TypeDoc