box-node-sdk
Version:
Official SDK for Box Platform APIs
15 lines (14 loc) • 414 B
TypeScript
import { FetchOptions } from './fetchOptions';
import { FetchResponse } from './fetchResponse';
export interface Interceptor {
/**
* @param {FetchOptions} options
* @returns {FetchOptions}
*/
beforeRequest(options: FetchOptions): FetchOptions;
/**
* @param {FetchResponse} response
* @returns {FetchResponse}
*/
afterRequest(response: FetchResponse): FetchResponse;
}