typescript

When to use `never` and `unknown` in TypeScript

The never and unknown primitive types were introduced in TypeScript v2.0 and v3.0 respectively. These two types represent fundamental and complementary aspects of type...
Jesse Hallett
6 min read

How TypeScript breaks referential transparency

Have you ever factored out a constant in TypeScript, only to have the type checker start reporting some mysterious errors? There’s a fundamental reason...
Dan Vanderkam
5 min read

How to limit frontend bugs

Bugs make our users unhappy and slow the development of our products down. The front end of our product is arguably more volatile than...
Carl Rippon
6 min read

Using TypeScript transforms to enrich runtime code

When I started developing no one was talking about “compiling” their JavaScript sources. Everyone just wrote a couple of scripts and referenced them directly....
Florian Rappl
10 min read

A comprehensive look back at front end in 2018

Grab a coffee, settle in, and read slow. Our review doesn’t miss much.
Kaelan Cooter
11 min read

7 bad excuses for not using TypeScript

Typescript has come a long way since its inception over six years ago and is being adopted by leading web companies. While there may...
Dmitry Pashkevich
7 min read

Is TypeScript on Node.js good enough for Java developers?

Every now and then you run into a cranky programmer who hates Javascript. They argue that JavaScript is terrible because it lacks type checking...
David Herron
16 min read

Setting up a monorepo with Lerna for a TypeScript…

It is often quite useful to use a single repository for maintaining an entire project with all of the packages in it. There is...
Vlado Tesanovic
4 min read

What makes ReasonML so great?

What exactly is ReasonML? ReasonML is a syntax extension for the OCaml language created by Facebook. Rather than creating an entirely new language, the...
Benjamin Johnson
8 min read

A quick and complete guide to TypeScript types

Photo by Mr Cup / Fabien Barral on Unsplash TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. TypeScript is open-sourced, it...
Christian Nwamba
4 min read

Frontend in 2018: More consensus, less complexity

2017 was quite a year in frontend web development. Frameworks like React and Angular have continued to enjoy large-scale support among the community, but...
Kaelan Cooter
9 min read

Frontend in 2017: The important parts

A lot has happened in 2017, and it can be a bit overwhelming to think about. We all like to joke about how quickly...
Kaelan Cooter
13 min read