Open rkhaslarov opened 2 years ago
Type '(response: FetchInterceptorResponse) => Promise' is not assignable to type '(response: FetchInterceptorResponse) => FetchInterceptorResponse'.
export interface FetchInterceptor { request?(url: string, config: any): Promise<any[]> | any[]; requestError?(error: any): Promise; response?(response: FetchInterceptorResponse): FetchInterceptorResponse; responseError?(error: any): Promise; }
So, the example of refresh token is not usable with ts...
The example is here https://github.com/werk85/fetch-intercept/issues/39#issuecomment-813922758
Check this https://github.com/werk85/fetch-intercept/issues/60#issuecomment-981971623
Type '(response: FetchInterceptorResponse) => Promise' is not assignable to type '(response: FetchInterceptorResponse) => FetchInterceptorResponse'.
export interface FetchInterceptor { request?(url: string, config: any): Promise<any[]> | any[]; requestError?(error: any): Promise;
response?(response: FetchInterceptorResponse): FetchInterceptorResponse;
responseError?(error: any): Promise;
}
So, the example of refresh token is not usable with ts...