TypeScript Articles, Tutorials & News

Literal Types in TypeScript

Over the past few months, I’ve been experimenting with leveraging TypeScript’s type system to give us more reliable code that lines up well with our product and customer success teams’ language, in true domain-driven design fashion. Along the way I’ve bee…

Read more »

Typed Routes with TypeScript

Although Esper started out as an OCaml shop, we also use quite a bit of TypeScript to build our front-end. “Why We Use TypeScript” would probably be a long post in and of itself, but th…

Read more »

How to Polyfill missing types in TypeScript

Support for TypeScript in terms of community provided typings is great and since TypeScript 2+ and the consolidation of typings under the npm @types scope, most major libraries have great support that is pretty easy to integrate into your project. Like a…

Read more »

Handling “this” in TypeScript callbacks

Having a means of protecting you from the limitations and quirks of JavaScript is a pretty essential part of any modern JavaScript project and build chain. TypeScript is one of the best ways of doing this. TypeScript offers us many great ways of ensuring…

Read more »