Class TelegrafArgumentsHost

Hierarchy

  • ExecutionContextHost
    • TelegrafArgumentsHost

Implements

Constructors

  • Parameters

    • args: any[]
    • OptionalconstructorRef: Type<any>
    • Optionalhandler: Function

    Returns TelegrafArgumentsHost

Methods

  • Returns a particular argument by index.

    Type Parameters

    • T = any

    Parameters

    • index: number

      index of argument to retrieve

    Returns T

  • Returns the array of arguments being passed to the handler.

    Type Parameters

    • T extends any[] = any[]

    Returns T

  • Returns the type of the controller class which the current handler belongs to.

    Type Parameters

    • T = any

    Returns Type<T>

  • Returns a reference to the handler (method) that will be invoked next in the request pipeline.

    Returns Function

  • Returns the current execution context type (string)

    Type Parameters

    • TContext extends string = ContextType

    Returns TContext

  • Type Parameters

    • TContext extends string = ContextType

    Parameters

    Returns void

  • Switch context to HTTP.

    Returns HttpArgumentsHost

    interface with methods to retrieve HTTP arguments

  • Switch context to RPC.

    Returns RpcArgumentsHost

    interface with methods to retrieve RPC arguments

  • Switch context to WebSockets.

    Returns WsArgumentsHost

    interface with methods to retrieve WebSockets arguments