Skip to content

Redux Toolkit - Need Example Using Reselect or Similar with TypeScript #3566

Answered by phryneas
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

The below example is fully typed. All the type information here is part of updateUser, so all the resulting types of payload etc. can automatically be derived from that. You don't need to write manual type annotations for TypeScript to work correctly here.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@phryneas
Comment options

Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants