UNPKG

@wise-group/tracking-jssdk

Version:

前端埋点sdk

13 lines (12 loc) 431 B
import type { AxiosRequestConfig } from 'axios'; interface IIntercept<Q, S> { readonly request?: Q; readonly response?: S; } export declare class WebAxios { private instance; constructor(options: AxiosRequestConfig, optIntercept?: IIntercept<Function, Function>); _request<T = any>(config: AxiosRequestConfig): Promise<any>; post<T = any>(config: AxiosRequestConfig): Promise<T>; } export default WebAxios;