score:0

your requestuser action creator takes a user object as an argument:

requestuser: (user: tuser) => ({
  type: actiontypes.userrequested,
  payload: { user },
}),

when switching to .ts, typescript is able to detect function calls that are missing their required arguments. you are dispatching this requestuser action creator from your saga without passing it a user argument:

// typescript error: expected 1 arguments, but got 0.  ts2554
yield put(actions.requestuser());

you have handled this correctly in your userrequested/fulfilluser saga where you access the user object from getuserbytoken and then pass it to your action creator. you will need to do the same or similar in your loginsaga and registersaga in order to call actions.requestuser properly.


Related Query

More Query from same tag