diff --git a/lib/index.test-d.ts b/lib/index.test-d.ts index a23f25e6..a3d8d9bd 100644 --- a/lib/index.test-d.ts +++ b/lib/index.test-d.ts @@ -8,3 +8,12 @@ expectType((await curl('http://a.com', {})).data); expectType((await curl('http://a.com', { method: 'HEAD', })).data); + +// HttpClientResponse +const res = await curl('http://a.com'); +expectType(res.res.timing?.queuing); +expectType(res.res.timing?.dnslookup); +expectType(res.res.timing?.connected); +expectType(res.res.timing?.requestSent); +expectType(res.res.timing?.waiting); +expectType(res.res.timing?.contentDownload);