mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
9 lines
317 B
TypeScript
9 lines
317 B
TypeScript
import { createAsyncThunk } from '@reduxjs/toolkit';
|
|
import { AppDispatch, RootState } from './store';
|
|
|
|
// https://redux-toolkit.js.org/usage/usage-with-typescript#defining-a-pre-typed-createasyncthunk
|
|
export const createAppAsyncThunk = createAsyncThunk.withTypes<{
|
|
state: RootState;
|
|
dispatch: AppDispatch;
|
|
}>();
|