Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ContextCreator

Hierarchy

Index

Methods

Abstract createConcreteContext

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

createContext

  • createContext<T, R>(instance: Controller, callback: function, metadataKey: string, contextId?: ContextId, inquirerId?: string): R
  • Type parameters

    • T: any[]

    • R: any[]

    Parameters

    • instance: Controller
    • callback: function
        • (...args: any[]): any
        • Parameters

          • Rest ...args: any[]

          Returns any

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

    Returns R

Optional getGlobalMetadata

  • getGlobalMetadata<T>(): T

reflectClassMetadata

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

reflectMethodMetadata

  • reflectMethodMetadata<T>(callback: function, metadataKey: string): T
  • Type parameters

    • T

    Parameters

    • callback: function
        • (...args: any[]): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    • metadataKey: string

    Returns T

Generated using TypeDoc