typescript

To mutate, or immutate, that is the question

This is the second post in the not all compilers are created equal series, in which we compare TypeScript (TS) and PureScript (PS), two...
Hernan Rajchert
9 min read

const assertions are the killer new TypeScript feature

Typescript 3.4 is out and while I find the official TypeScript docs very informative, they always feel a little bit too academic and a...
Paul Cowan
4 min read

What’s new in Create React App 3

Released at the end of April 2019, Create React App (CRA) 3 adds linting rules to hooks and TypeScript projects, along with other improvements...
Esteban Herrera
3 min read

Interfaces in TypeScript: What are they and how do…

JavaScript gives developers a great deal of flexibility. A variable initialized as an integer can be assigned a function literal at run-time. Types of...
Ankita Masand
13 min read

Why you should use CSS env()

Having difficulty keeping shared CSS and JavaScript values updated and in sync? Are you faced with seemingly random bugs when updating shared values? In...
Harry Nicholls
7 min read

TypeScript vs. PureScript

There are many ways to skin a cat, and for each one, there is a statically typed language that compiles to JavaScript. Among the...
Hernan Rajchert
13 min read

Pattern matching and type safety in TypeScript

I think it’s fair to say that most programmers understand type safety as a feature of the programming language which eliminates the type errors....
Michal Zalecki
4 min read

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