TypeScript Weekly

Issue #185 — March 10, 2022

Announcing TypeScript 4.6

TypeScript 4.6 is out and ships with various quality-of-life improvements to TypeScript. Most notably, this includes control flow analysis for destructured discriminated unions, as well as other improvements.

Daniel Rosenwasser

A Proposal for Type Syntax in JavaScript

The TypeScript team has been working on a new ECMAScript proposal to bring optional and erasable type syntax to JavaScript. The aim of this proposal is to enable developers to run programs written in TypeScript (or other static typing supersets of JavaScript) without any need for transpilation.

Daniel Rosenwasser

A Complete Guide to TypeScript’s never Type

A detailed explanation of the never type: how it works, why it’s needed, some practical applications, and pitfalls to avoid.

Zhenghao He

The TypeScript Converging Point

Stefan walks us through how we can statically type arguments of a Node CLI application in TypeScript, from basic types to sophisticated ones.

Stefan Baumgartner

The Display of Types

Dan dives into the strange world of type display and explores different ways of customizing how a TypeScript type should be presented.

Dan Vanderkam