add retryCount to Response (#37109)

This commit is contained in:
Michail Shipov
2019-07-24 12:56:18 -07:00
committed by Wesley Wigham
parent 59858d9d64
commit 389da87fce
+1
View File
@@ -284,6 +284,7 @@ declare namespace got {
requestUrl: string;
fromCache: boolean;
redirectUrls?: string[];
retryCount: number;
}
type GotPromise<B extends Buffer | string | object> = Promise<Response<B>> & { cancel(): void };