Skip to content

Commit 420018f

Browse files
committed
Export the BaseQueryError type
1 parent c1d0efd commit 420018f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

packages/toolkit/src/query/baseQueryTypes.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ export type BaseQueryMeta<BaseQuery extends BaseQueryFn> = UnwrapPromise<
7474
ReturnType<BaseQuery>
7575
>['meta']
7676

77+
/**
78+
* @public
79+
*/
7780
export type BaseQueryError<BaseQuery extends BaseQueryFn> = Exclude<
7881
UnwrapPromise<ReturnType<BaseQuery>>,
7982
{ error?: undefined }

packages/toolkit/src/query/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export type { Api, ApiContext, Module } from './apiTypes'
1616
export type {
1717
BaseQueryApi,
1818
BaseQueryEnhancer,
19+
BaseQueryError,
1920
BaseQueryFn,
2021
QueryReturnValue
2122
} from './baseQueryTypes'

0 commit comments

Comments
 (0)