UNPKG

@cgi-learning-hub/ui

Version:

@cgi-learning-hub/ui is an open-source React component library that implements UI for HUB's features

12 lines (11 loc) 427 B
import { FetchBaseQueryError } from '@reduxjs/toolkit/query'; /** * Type predicate to narrow an unknown error to `FetchBaseQueryError` */ export declare function isFetchBaseQueryError(error: unknown): error is FetchBaseQueryError; /** * Type predicate to narrow an unknown error to an object with a string 'message' property */ export declare function isErrorWithMessage(error: unknown): error is { message: string; };