@@ -81,7 +81,7 @@ export interface AxiosRequestConfig<D = any> {
81
81
signal ?: AbortSignal ;
82
82
}
83
83
84
- export interface AxiosResponse < T = never , D = any > {
84
+ export interface AxiosResponse < T = unknown , D = any > {
85
85
data : T ;
86
86
status : number ;
87
87
statusText : string ;
@@ -90,7 +90,7 @@ export interface AxiosResponse<T = never, D = any> {
90
90
request ?: any ;
91
91
}
92
92
93
- export interface AxiosError < T = never , D = any > extends Error {
93
+ export interface AxiosError < T = unknown , D = any > extends Error {
94
94
config : AxiosRequestConfig < D > ;
95
95
code ?: string ;
96
96
request ?: any ;
@@ -99,7 +99,7 @@ export interface AxiosError<T = never, D = any> extends Error {
99
99
toJSON : ( ) => object ;
100
100
}
101
101
102
- export interface AxiosPromise < T = never > extends Promise < AxiosResponse < T >> {
102
+ export interface AxiosPromise < T = unknown > extends Promise < AxiosResponse < T > > {
103
103
}
104
104
105
105
export interface CancelStatic {
@@ -143,14 +143,14 @@ export class Axios {
143
143
response : AxiosInterceptorManager < AxiosResponse > ;
144
144
} ;
145
145
getUri ( config ?: AxiosRequestConfig ) : string ;
146
- request < T = never , R = AxiosResponse < T > , D = any > ( config : AxiosRequestConfig < D > ) : Promise < R > ;
147
- get < T = never , R = AxiosResponse < T > , D = any > ( url : string , config ?: AxiosRequestConfig < D > ) : Promise < R > ;
148
- delete < T = never , R = AxiosResponse < T > , D = any > ( url : string , config ?: AxiosRequestConfig < D > ) : Promise < R > ;
149
- head < T = never , R = AxiosResponse < T > , D = any > ( url : string , config ?: AxiosRequestConfig < D > ) : Promise < R > ;
150
- options < T = never , R = AxiosResponse < T > , D = any > ( url : string , config ?: AxiosRequestConfig < D > ) : Promise < R > ;
151
- post < T = never , R = AxiosResponse < T > , D = any > ( url : string , data ?: D , config ?: AxiosRequestConfig < D > ) : Promise < R > ;
152
- put < T = never , R = AxiosResponse < T > , D = any > ( url : string , data ?: D , config ?: AxiosRequestConfig < D > ) : Promise < R > ;
153
- patch < T = never , R = AxiosResponse < T > , D = any > ( url : string , data ?: D , config ?: AxiosRequestConfig < D > ) : Promise < R > ;
146
+ request < T = unknown , R = AxiosResponse < T > , D = any > ( config : AxiosRequestConfig < D > ) : Promise < R > ;
147
+ get < T = unknown , R = AxiosResponse < T > , D = any > ( url : string , config ?: AxiosRequestConfig < D > ) : Promise < R > ;
148
+ delete < T = unknown , R = AxiosResponse < T > , D = any > ( url : string , config ?: AxiosRequestConfig < D > ) : Promise < R > ;
149
+ head < T = unknown , R = AxiosResponse < T > , D = any > ( url : string , config ?: AxiosRequestConfig < D > ) : Promise < R > ;
150
+ options < T = unknown , R = AxiosResponse < T > , D = any > ( url : string , config ?: AxiosRequestConfig < D > ) : Promise < R > ;
151
+ post < T = unknown , R = AxiosResponse < T > , D = any > ( url : string , data ?: D , config ?: AxiosRequestConfig < D > ) : Promise < R > ;
152
+ put < T = unknown , R = AxiosResponse < T > , D = any > ( url : string , data ?: D , config ?: AxiosRequestConfig < D > ) : Promise < R > ;
153
+ patch < T = unknown , R = AxiosResponse < T > , D = any > ( url : string , data ?: D , config ?: AxiosRequestConfig < D > ) : Promise < R > ;
154
154
}
155
155
156
156
export interface AxiosInstance extends Axios {
0 commit comments