diff --git a/index.d.ts b/index.d.ts index 7682daf3ad..f19c59fb07 100644 --- a/index.d.ts +++ b/index.d.ts @@ -584,7 +584,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(url: string, opt?: RequestOptions): Promise; + curl(url: string, opt?: RequestOptions): Promise; /** * Get logger by name, it's equal to app.loggers['name'], but you can extend it with your own logical @@ -891,7 +891,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(url: string, opt?: RequestOptions): Promise; + curl(url: string, opt?: RequestOptions): Promise; /** * Render a file by view engine