Skip to content

Commit

Permalink
Fix type check
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen committed Sep 11, 2020
1 parent 2b949c5 commit ab889ee
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import { kea, MakeLogicType } from 'kea';

import { HttpSetup } from 'src/core/public';
import { HttpSetup, HttpInterceptorResponseError } from 'src/core/public';

export interface IHttpValues {
http: HttpSetup;
Expand Down Expand Up @@ -70,7 +70,7 @@ export const HttpLogic = kea<MakeLogicType<IHttpValues, IHttpActions>>({
}

// Re-throw error so that downstream catches work as expected
return Promise.reject(httpResponse);
return Promise.reject(httpResponse) as Promise<HttpInterceptorResponseError>;
},
});
httpInterceptors.push(errorConnectingInterceptor);
Expand Down

0 comments on commit ab889ee

Please sign in to comment.