UNPKG

356 BTypeScriptView Raw
1import { Action } from './Action';
2/**
3 * Classes that intercepts response result must implement this interface.
4 */
5export interface InterceptorInterface {
6 /**
7 * Called before success response is being sent to the request.
8 * Returned result will be sent to the user.
9 */
10 intercept(action: Action, result: any): any | Promise<any>;
11}