typescript

Build a GraphQL + React app with TypeScript

Watch your code blast off as we create a fully functioning React app from scratch using the SpaceX GraphQL API.
Trey Huffine
11 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
5 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
4 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
12 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

Writing readable code with TypeScript enums

TL;DR: In this article, we will look into enums, what they are and how they are used in TypeScript. We will also use sample...
Nwose Lotanna
6 min read

TypeScript vs PureScript

Not all compilers are created equal There are many ways to skin a cat, and for each one there is a statically typed language that...
Hernan Rajchert
14 min read

Choosing between Babel and TypeScript

Babel 7 shipped about six months ago with built-in TypeScript syntax support. This means that projects using Babel can now use TypeScript, without ever...
Gustav Wengel
4 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
5 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
7 min read

How TypeScript breaks referential transparency

(and what to do about it) Have you ever factored out a constant in TypeScript, only to have the type checker start reporting some mysterious...
Dan Vanderkam
6 min read

How to limit front-end 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