blob: 8935e23504858aac53dddc526819f0683ebf720c (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
import type { FetchBaseQueryError } from '@reduxjs/toolkit/query/react';
export const isFetchBaseQueryError = (
error: any
): error is FetchBaseQueryError => {
return 'data' in error && 'message' in error.data;
};
export interface Data {
message: string;
}
|