This article shows common patterns to maximize TypeScript’s potential for type-safe code. These techniques are all part of the same group, which we call type narrowing.
Typesafe Endpoints with TypeScript and Java
In Single-Page-Applications (SPAs), the server usually provides endpoints (API) and does no rendering at all. I will show how to convert message types of an API to TypeScript types automatically within the context of Spring MVC.