TypeScript Tutorial

Using TypeScript against your store can create a dramatically improved developer experience, making it far easier to consume your store and perform refactoring of it if required. Easy Peasy is bundled with robust TypeScript definitions to, allowing you to take advantage of this.

Our type definitions require TypeScript >= 3.5.1, however, we would recommend using the most recent version of TypeScript where possible to ensure you have the latest TypeScript bug fixes applied.

This section will guide you through integrating and using TypeScript with Easy Peasy. It will start with the basics, focusing on state only, and then gradually introduce each of the APIs (e.g. action, thunk, etc).

We will be building a fully functional application along the way, using CodeSandbox to host the demo. Each section will link to a specific CodeSandbox instance with the progress that we have made within each part of the tutorial.

If you aren't familiar with Easy Peasy then I would recommend that you first familiarise yourself with it by reading the tutorial.