mirror of
https://github.com/ershisan99/cards-front.git
synced 2026-01-20 12:34:17 +00:00
part 4
This commit is contained in:
1
src/common/index.ts
Normal file
1
src/common/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from "./utils"
|
||||
8
src/common/utils/create-app-async-thunk.ts
Normal file
8
src/common/utils/create-app-async-thunk.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { createAsyncThunk } from "@reduxjs/toolkit"
|
||||
import { AppDispatch, RootState } from "@/app/store"
|
||||
|
||||
export const createAppAsyncThunk = createAsyncThunk.withTypes<{
|
||||
state: RootState
|
||||
dispatch: AppDispatch
|
||||
rejectValue: unknown
|
||||
}>()
|
||||
1
src/common/utils/index.ts
Normal file
1
src/common/utils/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from "./create-app-async-thunk"
|
||||
Reference in New Issue
Block a user