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.
dispatch
AsyncThunkAction
NonNullable
1 parent 7f1ef6b commit 17bf9edCopy full SHA for 17bf9ed
packages/toolkit/src/createAsyncThunk.ts
@@ -240,7 +240,7 @@ export type AsyncThunkAction<
240
ThunkArg,
241
ThunkApiConfig extends AsyncThunkConfig,
242
> = (
243
- dispatch: GetDispatch<ThunkApiConfig>,
+ dispatch: NonNullable<GetDispatch<ThunkApiConfig>>,
244
getState: () => GetState<ThunkApiConfig>,
245
extra: GetExtra<ThunkApiConfig>,
246
) => SafePromise<
0 commit comments