ng-table
Version:
Table + AngularJS ================= [](https://travis-ci.org/esvit/ng-table) [](https://coveralls.io/r/esvit/ng-table) [![seman
10 lines (9 loc) • 414 B
TypeScript
import { NgTableParams } from '../ngTableParams';
/**
* A custom object that can be registered with an {@link NgTableParams} instance that can be used
* to post-process the results (and failures) returned by its `getData` function
*/
export interface IInterceptor<T> {
response?: <TData>(data: TData, params: NgTableParams<T>) => TData;
responseError?: (reason: any, params: NgTableParams<T>) => any;
}