From 6d19f99f6490df67832d1d2a9c39743c0de1cbd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=98=E6=A0=91=40=E9=98=BF=E9=87=8C?= Date: Wed, 24 Nov 2021 13:24:13 +0800 Subject: [PATCH] tsd: add timing interface (#375) --- lib/index.d.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/lib/index.d.ts b/lib/index.d.ts index 23071ec9..f7cad9b9 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -140,7 +140,19 @@ export interface HttpClientResponse { 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; + } + }; }