TypeScript 4.6 RC, Assertion Functions, Type Hierarchy

TypeScript Weekly

Issue #184 — February 27, 2022

Announcing TypeScript 4.6 RC

The release candidate of 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

Assertion Functions in TypeScript

Assertion functions in TypeScript are functions that throw an error if something unexpected happened. Using so-called assertion signatures, we can tell TypeScript that a function should be treated as an assertion function.

Marius Schulz

The Type Hierarchy Tree

Zhenghao explains his mental model of supertypes vs. subtypes, nominal vs. structural typing, and type assignability in TypeScript.

Zhenghao He

How Not to Learn TypeScript

Stefan goes over a bunch of mistakes he has seen people make when getting started with TypeScript: ignoring JavaScript, annotating everything, mistaking types for values, and going all-in straight away.

Stefan Baumgartner

microsoft / TypeScript-Compiler-Notes

A GitHub repo containing notes about the TypeScript compiler codebase from many engineers over time. If you’re interested in contributing to TypeScript, this could be a great starting point to familiarize yourself with the codebase.

TypeScript Team

Older messages

10 Most Popular Posts from 2021

Wednesday, February 9, 2022

TypeScript Weekly Issue #183 — February 6, 2022 Hi there! 👋 This is the first issue of TypeScript Weekly in 2022. Welcome back if you've been with us last year already, and welcome aboard if you

Function Overloads, Control Flow Analysis, Type | Treat

Friday, December 10, 2021

TypeScript Weekly Issue #182 — December 9, 2021 Get the Best of TypeScript Control Flow Analysis This article will show some simple type construction patterns, code writing habits, and compiler options

TypeScript 4.5, Function Overloading, Const Enums

Thursday, November 25, 2021

TypeScript Weekly Issue #181 — November 25, 2021 Announcing TypeScript 4.5 TypeScript 4.5 has been released! It implements the Awaited type which improves promise typing, introduces a way to override a

How the Compiler Compiles, Mastering Template Literal Types

Friday, November 12, 2021

TypeScript Weekly Issue #180 — November 11, 2021 How the TypeScript Compiler Compiles A systems-level look at the TypeScript compiler: how it converts a file into an intermediate representation, checks

TypeScript 4.5 RC, Type or Treat Challenges

Friday, November 5, 2021

TypeScript Weekly Issue #179 — November 4, 2021 Announcing TypeScript 4.5 RC The release candidate of TypeScript 4.5 has been released. It implements the Awaited type which improves promise typing,

You Might Also Like

Ranked | Which Country Has the Most Billionaires in 2024? 💰

Thursday, May 2, 2024

According to the annual Hurun Global Rich List, the US and China are home to nearly half of the world's 3279 billionaires in 2024. View Online | Subscribe Presented by: The economy is changing. Is

⚙️ Rovo

Thursday, May 2, 2024

Plus: Microsoft are (were?) terrified of Google's AI ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

Have VPN connection issues? This might be why

Thursday, May 2, 2024

DJI Power station; Studying with AI; Best gaming PCs -- ZDNET ZDNET Tech Today - US May 2, 2024 placeholder Having VPN connection issues? Microsoft warns the April 2024 Windows update is to blame If

Programmer Weekly - Issue 203

Thursday, May 2, 2024

View this email in your browser Programmer Weekly Welcome to issue 203 of Programmer Weekly. Let's get straight to the links this week. Quote of the Week "The hardest part of design is keeping

Python Weekly - Issue 648

Thursday, May 2, 2024

View this email in your browser Python Weekly Welcome to issue 648 of Python Weekly. Let's get straight to the links this week. News Fake job interviews target developers with new Python backdoor A

A new approach to access management for the way we work today

Thursday, May 2, 2024

Announcing 1Password® Extended Access Management ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Web Tools #563 - Frameworks, JSON/DB Tools, Vue, Nuxt.js

Thursday, May 2, 2024

WEB VERSION Issue #563 • May 2, 2024 Advertisement The Complete JavaScript Course 2024: From Zero to Expert This is an up-to-date JavaScript course covering modern techniques and features that will

Venture capitalists love musical chairs

Thursday, May 2, 2024

A number of investors have been swapping gigs and bouncing from prior employers to build new investing groups. View this email online in your browser By Alex Wilhelm Thursday, May 2, 2024 Good morning,

Gemini in Android Studio and more: Android Studio Jellyfish is Stable!

Thursday, May 2, 2024

View in browser 🔖 Articles Gemini in Android Studio and more: Android Studio Jellyfish is Stable! Android Studio Jellyfish (2023.3.1) is making waves with its official stable release! 🪼🌊 Dive into

wpmail.me issue#665

Thursday, May 2, 2024

wpMail.me wpmail.me issue#665 - The weekly WordPress newsletter. No spam, no nonsense. - May 2, 2024 Is this email not displaying correctly? View it in your browser. News & Articles Why Should You