return xhr(config)
编译器报错提示
export interface AxiosRequestConfig {
url:string
method?:Method
data?:any
params?:any
headers?:any
responseType?: XMLHttpRequestResponseType
}
// "" | "arraybuffer" | "blob" | "document" | "json" | "text"
export interface AxiosResponse {
data: any
status: number
statusText: string
headers: any
config: AxiosRequestConfig
request: any
}
export interface AxiosPromise extends Promise<AxiosResponse> {
}