Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PipesContextCreator

Hierarchy

Index

Constructors

constructor

Properties

Private Optional Readonly config

Private Readonly container

container: NestContainer

Private moduleContext

moduleContext: string

Methods

create

  • create(instance: Controller, callback: (...args: unknown[]) => unknown, moduleKey: string, contextId?: ContextId, inquirerId?: string): PipeTransform[]
  • Parameters

    • instance: Controller
    • callback: (...args: unknown[]) => unknown
        • (...args: unknown[]): unknown
        • Parameters

          • Rest ...args: unknown[]

          Returns unknown

    • moduleKey: string
    • Default value contextId: ContextId = STATIC_CONTEXT
    • Optional inquirerId: string

    Returns PipeTransform[]

createConcreteContext

  • createConcreteContext<T, R>(metadata: T, contextId?: ContextId, inquirerId?: string): R

createContext

  • createContext<T, R>(instance: Controller, callback: (...args: any[]) => void, metadataKey: string, contextId?: ContextId, inquirerId?: string): R

getGlobalMetadata

  • getGlobalMetadata<T>(contextId?: ContextId, inquirerId?: string): T

getInstanceByMetatype

getPipeInstance

  • getPipeInstance(pipe: Function | PipeTransform, contextId?: ContextId, inquirerId?: string): PipeTransform | null

reflectClassMetadata

  • reflectClassMetadata<T>(instance: Controller, metadataKey: string): T

reflectMethodMetadata

  • reflectMethodMetadata<T>(callback: (...args: unknown[]) => unknown, metadataKey: string): T

setModuleContext

  • setModuleContext(context: string): void

Generated using TypeDoc