routing-controllers
Version:
Create structured, declarative and beautifully organized class-based controllers with heavy decorators usage for Express / Koa using TypeScript.
12 lines (11 loc) • 356 B
TypeScript
import { Action } from './Action';
/**
* Classes that intercepts response result must implement this interface.
*/
export interface InterceptorInterface {
/**
* Called before success response is being sent to the request.
* Returned result will be sent to the user.
*/
intercept(action: Action, result: any): any | Promise<any>;
}