Closed
Description
openedon Sep 18, 2024
I have a hook like this
And i'm trying to pass this function () => dispatch(createAttendanceEvent(eventId)) to createAction argument
But i get an error
Type 'Promise<PayloadAction<unknown, string, { arg: number; requestId: string; requestStatus: "fulfilled"; }, never> | PayloadAction<unknown, string, { arg: number; requestId: string; requestStatus: "rejected"; aborted: boolean; condition: boolean; } & ({ ...; } | ({ ...; } & {})), SerializedError>> & { ...; } & { ...; }' is not assignable to type 'Promise<{ payload: void; type: string; }>'
What type of argument should i use to be able to pass this () => dispatch(createAttendanceEvent(eventId))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
No labels