add retryCount to Response (#37109)

This commit is contained in:
Michail Shipov
2019-07-24 22:56:18 +03:00
committed by Wesley Wigham
parent 59858d9d64
commit 389da87fce

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 };