UNPKG

618 BTypeScriptView Raw
1import { Type } from '../index';
2import { ArgumentsHost } from './arguments-host.interface';
3/**
4 * Interface describing details about the current request pipeline.
5 *
6 * @see [Execution Context](https://docs.nestjs.com/guards#execution-context)
7 *
8 * @publicApi
9 */
10export interface ExecutionContext extends ArgumentsHost {
11 /**
12 * Returns the *type* of the controller class which the current handler belongs to.
13 */
14 getClass<T = any>(): Type<T>;
15 /**
16 * Returns a reference to the handler (method) that will be invoked next in the
17 * request pipeline.
18 */
19 getHandler(): Function;
20}