Leverage union types in Typescript to avoid invalid states

Typescript has a type system which provides more capabilities than the type system in C# and Java. The one that I found to be very useful is the union type in Typescript. Let’s define what a union type is Union… Read more

Similar

TypeScript vs. Flow

TypeScript calls itself a JavaScript superset and compiler while Flow is a static type checker. TypeScript is developed by Microsoft and highly inspired by C# or Java type systems. What I find interesting is that TypeScript is actually written in TypeScri... (more…)

Read more »