Property 'then' does not exist on type 'AsyncThunkAction' Redux-toolkit
问题 I can't seem to receive a Promise from createAsyncThunk function from Redux-toolkit I'm fairly new to Typescript and I'm struggling to figure out why it's giving me Property 'then' does not exist on type 'AsyncThunkAction<Student, number, {}>' error even though the promise does get returned if I remove the typing. Here is my createAsyncThunk f-n export const getStudentByIdRequest = createAsyncThunk<Student, number>( 'student/getStudentByIdRequest', async (id, { rejectWithValue }) => { try {