|
@@ -34,6 +34,14 @@ export default class PureHttp {
|
|
|
param?: AxiosRequestConfig,
|
|
|
axiosConfig?: PureHttpRequestConfig
|
|
|
): Promise<T>;
|
|
|
- post<T>(url: string, params?: T, config?: PureHttpRequestConfig): Promise<T>;
|
|
|
- get<T>(url: string, params?: T, config?: PureHttpRequestConfig): Promise<T>;
|
|
|
+ post<T, P>(
|
|
|
+ url: string,
|
|
|
+ params?: T,
|
|
|
+ config?: PureHttpRequestConfig
|
|
|
+ ): Promise<P>;
|
|
|
+ get<T, P>(
|
|
|
+ url: string,
|
|
|
+ params?: T,
|
|
|
+ config?: PureHttpRequestConfig
|
|
|
+ ): Promise<P>;
|
|
|
}
|