whale-plus
Version:
A Component Library for Vue 3
5 lines (4 loc) • 300 B
TypeScript
import type { RequestOptions } from './requestOptions';
export type RequestInterceptor = (options: RequestOptions) => RequestOptions | Promise<RequestOptions>;
export type ResponseInterceptor = (response: any) => any | Promise<any>;
export type ErrorInterceptor = (error: any) => any | Promise<any>;