We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 862bef3 + 13b7fe1 commit 627572aCopy full SHA for 627572a
packages/toolkit/src/createAsyncThunk.ts
@@ -15,7 +15,7 @@ export type BaseThunkAPI<
15
S,
16
E,
17
D extends Dispatch = Dispatch,
18
- RejectedValue = undefined,
+ RejectedValue = unknown,
19
RejectedMeta = unknown,
20
FulfilledMeta = unknown
21
> = {
@@ -137,7 +137,7 @@ type GetDispatch<ThunkApiConfig> = ThunkApiConfig extends {
137
>
138
: ThunkDispatch<GetState<ThunkApiConfig>, GetExtra<ThunkApiConfig>, AnyAction>
139
140
-type GetThunkAPI<ThunkApiConfig> = BaseThunkAPI<
+export type GetThunkAPI<ThunkApiConfig> = BaseThunkAPI<
141
GetState<ThunkApiConfig>,
142
GetExtra<ThunkApiConfig>,
143
GetDispatch<ThunkApiConfig>,
0 commit comments