Skip to content

Commit

Permalink
fix(dts): fix curl type (#4312)
Browse files Browse the repository at this point in the history
Co-authored-by: huyuhang <huyuhang@wezhuiyi.com>
  • Loading branch information
yishengtanxi and huyuhang committed May 25, 2020
1 parent 4df0871 commit b5cc8b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Expand Up @@ -563,7 +563,7 @@ declare module 'egg' {
* Keep the same api with httpclient.request(url, args).
* See https://github.com/node-modules/urllib#api-doc for more details.
*/
curl<T = any>(url: string, opt?: RequestOptions): Promise<T>;
curl: EggHttpClient['request'];

/**
* Get logger by name, it's equal to app.loggers['name'], but you can extend it with your own logical
Expand Down Expand Up @@ -908,7 +908,7 @@ declare module 'egg' {
* Keep the same api with httpclient.request(url, args).
* See https://github.com/node-modules/urllib#api-doc for more details.
*/
curl<T = any>(url: string, opt?: RequestOptions): Promise<T>;
curl: EggHttpClient['request'];

__(key: string, ...values: string[]): string;
gettext(key: string, ...values: string[]): string;
Expand Down

0 comments on commit b5cc8b6

Please sign in to comment.