Skip to content

Commit

Permalink
feat: add httpclient.safeCurl typing
Browse files Browse the repository at this point in the history
  • Loading branch information
killagu committed Jul 12, 2024
1 parent 6b34ce2 commit 66653d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ declare module 'egg' {
curl<T = any>(url: HttpClientRequestURL): Promise<HttpClientResponseOld<T> | HttpClientResponse<T>>;
curl<T = any>(url: HttpClientRequestURL, options: RequestOptionsOld | HttpClientRequestOptions):
Promise<HttpClientResponseOld<T> | HttpClientResponse<T>>;
safeCurl<T = any>(url: HttpClientRequestURL): Promise<HttpClientResponseOld<T> | HttpClientResponse<T>>;
safeCurl<T = any>(url: HttpClientRequestURL, options: RequestOptionsOld | HttpClientRequestOptions):
Promise<HttpClientResponseOld<T> | HttpClientResponse<T>>;
}

interface EggHttpConstructor {
Expand Down

0 comments on commit 66653d0

Please sign in to comment.