Options
All
  • Public
  • Public/Protected
  • All
Menu

Class InterceptorsConsumer

Hierarchy

  • InterceptorsConsumer

Index

Methods

createContext

intercept

  • intercept<TContext>(interceptors: NestInterceptor[], args: unknown[], instance: Controller, callback: (...args: unknown[]) => unknown, next: () => Promise<unknown>, type?: TContext): Promise<unknown>
  • Type parameters

    • TContext: string = ContextType

    Parameters

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

          • Rest ...args: unknown[]

          Returns unknown

    • next: () => Promise<unknown>
        • (): Promise<unknown>
        • Returns Promise<unknown>

    • Optional type: TContext

    Returns Promise<unknown>

transformDeffered

  • transformDeffered(next: () => Promise<any>): Observable<any>

Generated using TypeDoc