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