Closed antony2809 closed 4 years ago
Hey @antony2809 Which version are you using v4 or v5?
V5
Below usage is from v4
:
export const login = createAction(LOGIN, action => {
return (email: string, password: string) => action({email, password});
});
Please check the new temporary: v5.x.x API Docs
There is an announcement in the Readme:
@antony2809 I had the same issue just now. I guess you are on the tutorial V4. (V5 tutorial seems WIP) please try on V4, then the above issue will be gone. or check out the migration guide.
I'm trying to follow the tutorial, and I don't know why when making de declaration of my type Actions, is always return never. So this doesn't allows me to use the helpers.
I have this file structure
constants.ts
actions.ts
reducer.ts
I'm doing something wrong, because I couldn't find the solution for this.
Regards