BaseQueryNarrowing

Interface: BaseQueryNarrowing<TData, TError>

Type Parameters

TData = unknown

TError = DefaultError

Properties

isError()

ts
isError: (this) => this is CreateBaseQueryResult<TData, TError, CreateStatusBasedQueryResult<"error", TData, TError>>;
isError: (this) => this is CreateBaseQueryResult<TData, TError, CreateStatusBasedQueryResult<"error", TData, TError>>;

Parameters

this: CreateBaseQueryResult<TData, TError, QueryObserverResult<TData, TError>>

Returns

this is CreateBaseQueryResult<TData, TError, CreateStatusBasedQueryResult<"error", TData, TError>>

Defined in

types.ts:75


isPending()

ts
isPending: (this) => this is CreateBaseQueryResult<TData, TError, CreateStatusBasedQueryResult<"pending", TData, TError>>;
isPending: (this) => this is CreateBaseQueryResult<TData, TError, CreateStatusBasedQueryResult<"pending", TData, TError>>;

Parameters

this: CreateBaseQueryResult<TData, TError, QueryObserverResult<TData, TError>>

Returns

this is CreateBaseQueryResult<TData, TError, CreateStatusBasedQueryResult<"pending", TData, TError>>

Defined in

types.ts:82


isSuccess()

ts
isSuccess: (this) => this is CreateBaseQueryResult<TData, TError, QueryObserverSuccessResult<TData, TError>>;
isSuccess: (this) => this is CreateBaseQueryResult<TData, TError, QueryObserverSuccessResult<TData, TError>>;

Parameters

this: CreateBaseQueryResult<TData, TError, QueryObserverResult<TData, TError>>

Returns

this is CreateBaseQueryResult<TData, TError, QueryObserverSuccessResult<TData, TError>>

Defined in

types.ts:68