Writing Robust TypeScript Libraries – A Subtle Art

When writing a TypeScript library, it’s helpful to validate all the data passed into the library—at least in development—so that your library robustly handles the kinds of bad data it may receive from JavaScript and loose-mode TypeScript consumers. Read more

Similar

TypeScript 4.4

Today we’re excited to announce the availability of TypeScript 4.4! If you haven’t heard of TypeScript yet, it’s a language that builds on JavaScript by adding syntax for static types. Tools like the TypeScript compiler just erase those types, leaving you... (more…)

Read more »

Demystifying a TypeScript Quirk

I recently read Asana's blog post on TypeScript quirks and took particular interest in the first TypeScript quirk they mention. While it may seem like an inconsistency, the way the type system behaves here is entirely logical. (more…)

Read more »

TypeScript 4.0 Beta

Today we’re excited to release the beta of the next major milestone in the TypeScript programming language: TypeScript 4.0. This beta takes us on our first step into TypeScript 4.0, and while it brings a new major version, don’t fret –... (more…)

Read more »