Typescript

Articles, notes, and links about Typescript.


Validate schemas and declare types with Zod

Zod is a Typescript package that lets you declare your data types and do runtime type checking.

February 12, 2022

Complex type guards for the unknown

In any Typescript project you will inevitably end up working with an unknown data type that you need to know its correct type to proceed with confidence. One strategy for ensuring type correctness is with type guards.

January 19, 2022