Skip to content

Commit

Permalink
tsd: add timing interface (#375)
Browse files Browse the repository at this point in the history
  • Loading branch information
dickeylth committed Nov 24, 2021
1 parent 9c9c65b commit 6d19f99
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion lib/index.d.ts
Expand Up @@ -140,7 +140,19 @@ export interface HttpClientResponse<T> {
data: T;
status: number;
headers: OutgoingHttpHeaders;
res: http.IncomingMessage;
res: http.IncomingMessage & {
/**
* https://eggjs.org/en/core/httpclient.html#timing-boolean
*/
timing?: {
queuing: number;
dnslookup: number;
connected: number;
requestSent: number;
waiting: number;
contentDownload: number;
}
};
}


Expand Down

0 comments on commit 6d19f99

Please sign in to comment.