Convert a RTK Query Application to TypeScript

Share this video with your friends

Send Tweet

TypeScript is increasingly being used instead of JavaScript in many projects. We'll look at converting our application to TypeScript and see what benefits that brings.

TypeScript will show us all the methods that we have available on our API along with our hooks we use to consume our API. In addition to this, we'll get situational typing that will tell us what data is available to us given a loading state. This will catch a lot of bugs in our code.