According to the index.d.ts the GotOptions accept a number or a RetryOptions for the retry attribute.
Passing the attribute leads to an exception: RequestError: Unexpected retry option: retries
Expected behavior
Passing the retry parameter as in the code below would not lead to an exception.
Both ways fail, but should be good, according to @types/got.
Describe the bug
Actual behavior
According to the
index.d.ts
theGotOptions
accept a number or aRetryOptions
for theretry
attribute. Passing the attribute leads to an exception:RequestError: Unexpected retry option: retries
Expected behavior
Passing the retry parameter as in the code below would not lead to an exception. Both ways fail, but should be good, according to @types/got.
Code to reproduce
Checklist