Closed karlismelderis closed 4 years ago
@karlismelderis Why do you need retryCount
and lastRequestTime
fields there? I guess this should be enough:
declare module 'axios' {
export interface AxiosRequestConfig {
'axios-retry'?: IAxiosRetryConfig;
}
}
Where IAxiosRetryConfig
is this https://github.com/softonic/axios-retry/blob/v3.1.8/index.d.ts#L25-L53. Take a look at PR https://github.com/softonic/axios-retry/pull/149
I think we're missing bit in retryCondition type
error argument is not pure
axios.AxiosError
axios-retry actually is adding one more property to it:can you please extend the type?
I tried to add this bit to your index.d.ts and it solved the case for me: