We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 842ae08 commit 1d0a9eeCopy full SHA for 1d0a9ee
src/plugins/react/reduxThunkAxios/config.ts
@@ -94,7 +94,7 @@ function getPostSlice(isTsProject: boolean) {
94
return `import { createAsyncThunk, createSlice ${
95
isTsProject ? ", PayloadAction " : ""
96
} } from "@reduxjs/toolkit";
97
- import { getPosts } from "src/utils/api";
+ import { getPosts ${isTsProject?",PostType":""} } from "src/utils/api";
98
export const getPostApi = createAsyncThunk("posts", async () => {
99
try {
100
const response = await getPosts();
0 commit comments