Mapped Types in TypeScript
While building a TypeScript app, I got an error caused by accidentally modifying data fetched from an API. To avoid such issues in the future, I used Readonly and other mapped types. It helped me to avoid the error by making parts of the data unchangeable. In this TypeScript tutorial, I’ll explain mapped types in … Read more >>