Skip to content

Commit 1d0a9ee

Browse files
committed
fix: Add a type in postslice of React RTK plugin
1 parent 842ae08 commit 1d0a9ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/react/reduxThunkAxios/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ function getPostSlice(isTsProject: boolean) {
9494
return `import { createAsyncThunk, createSlice ${
9595
isTsProject ? ", PayloadAction " : ""
9696
} } from "@reduxjs/toolkit";
97-
import { getPosts } from "src/utils/api";
97+
import { getPosts ${isTsProject?",PostType":""} } from "src/utils/api";
9898
export const getPostApi = createAsyncThunk("posts", async () => {
9999
try {
100100
const response = await getPosts();

0 commit comments

Comments
 (0)