You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I understand that the argument in the payloadCreator is typed as void by default and if this was a regular TS project, I could've easily added a type for the post or even typed it as any, but seeing as that is not possible, I would be grateful for a JS solution. I don't seem to be able to extend types either.
The text was updated successfully, but these errors were encountered:
Working on a regular JS project in VSCode which uses Typescript to check the files, using
createAsyncThunk
with an argument causes type errors:Type error:
Expected 0 arguments, but got 1
I understand that the argument in the
payloadCreator
is typed asvoid
by default and if this was a regular TS project, I could've easily added a type for thepost
or even typed it asany
, but seeing as that is not possible, I would be grateful for a JS solution. I don't seem to be able to extend types either.The text was updated successfully, but these errors were encountered: