File tree 1 file changed +4
-7
lines changed
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -19,9 +19,9 @@ import {
19
19
HttpClientResponse as HttpClientResponseOld ,
20
20
} from 'urllib' ;
21
21
import {
22
- RequestURL ,
23
- RequestOptions as RequestOptionsNext ,
24
- HttpClientResponse as HttpClientResponseNext ,
22
+ RequestURL as HttpClientRequestURL ,
23
+ RequestOptions as HttpClientRequestOptions ,
24
+ HttpClientResponse ,
25
25
} from 'urllib-next' ;
26
26
import {
27
27
EggCoreBase ,
@@ -60,10 +60,7 @@ declare module 'egg' {
60
60
// return await app.httpclient.request(url, options);
61
61
// }
62
62
// ```
63
- export type HttpClientRequestURL = RequestURL ;
64
- export type HttpClientRequestOptions = RequestOptionsNext ;
65
- export type HttpClientResponse < T = any > = HttpClientResponseNext < T > ;
66
-
63
+ export { HttpClientRequestURL , HttpClientRequestOptions , HttpClientResponse } ;
67
64
// Compatible with both urllib@2 and urllib@3 RequestOptions to request
68
65
export interface EggHttpClient extends EventEmitter {
69
66
request < T = any > ( url : HttpClientRequestURL ) : Promise < HttpClientResponseOld < T > | HttpClientResponse < T > > ;
You can’t perform that action at this time.
0 commit comments