Class InterceptorsConsumer
Methods
createContext
-
Parameters
-
args: unknown[]
-
-
callback: (...args: unknown[]) => unknown
-
- (...args: unknown[]): unknown
-
Parameters
Returns unknown
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[]
-
-
callback: (...args: unknown[]) => unknown
-
- (...args: unknown[]): unknown
-
Parameters
Returns unknown
-
next: () => Promise<unknown>
-
Optional type: TContext
Returns Promise<unknown>
transformDeffered
- transformDeffered(next: () => Promise<any>): Observable<any>
-
Parameters
Returns Observable<any>