Skip to content
Permalink
Browse files

fix(retry-interceptor): conform to Interceptor interface

  • Loading branch information...
BBosman committed Feb 25, 2019
1 parent 1322732 commit daae14b1d6281e4751f9eb0c5494763c22e625fe
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/retry-interceptor.ts
@@ -45,13 +45,13 @@ export class RetryInterceptor implements Interceptor {
return request;
}

response(response: Response, request: Request): Response {
response(response: Response, request?: Request): Response {
// retry was successful, so clean up after ourselves
delete (request as any).retryConfig;
return response;
}

responseError(error: Response, request: Request, httpClient: HttpClient) {
responseError(error: Response, request?: Request, httpClient?: HttpClient) {
const { retryConfig } = request as Request & { retryConfig: RetryConfiguration };
const { requestClone } = retryConfig;
return Promise.resolve().then(() => {

0 comments on commit daae14b

Please sign in to comment.
You can’t perform that action at this time.