TypeScript 4.2, Narrow Types in catch Clauses

TypeScript Weekly

Issue #165 — March 4, 2021

Announcing TypeScript 4.2

TypeScript 4.2 is out and introduces smarter type alias preservation, leading/middle rest elements in tuple types, and more.

Daniel Rosenwasser

TypeScript: Narrow Types in catch Clauses

How to statically type the error binding in catch clauses in TypeScript: any versus unknown and why these are the only types TypeScript allows you to use.

Stefan Baumgartner

Using Pick in TypeScript

Using the Pick type in TypeScript to help clean up your codebase and make your type management easier and cleaner.

Todd Motto

Creating a Scientific Pitch Notation Type

How to create a scientific pitch notation type using template literal types.

Geoffrey Dhuyvetters

Older messages

TypeScript 4.2 RC, TypeScript's Effects on JavaScript

Tuesday, February 16, 2021

TypeScript Weekly Issue #164 — February 16, 2021 Announcing TypeScript 4.2 RC The release candidate of TypeScript 4.2 is out and introduces smarter type alias preservation, leading/middle rest elements

Dynamic Static Typing, Fun with Advanced TypeScript

Wednesday, February 3, 2021

TypeScript Weekly Issue #163 — February 2, 2021 Hi there! First off, apologies for the duplicate email. Today, I learned the hard way that "Fun %20 with %20 advanced %20 TypeScript" is not a

Dynamic Static Typing, Fun with Advanced TypeScript

Tuesday, February 2, 2021

TypeScript Weekly Issue #163 — February 2, 2021 Dynamic Static Typing in TypeScript How to formalize the most dynamic JavaScript behavior using TypeScript in a way that we can catch most bugs before

Deprecating Function Signatures, Low Maintenance Types

Tuesday, January 26, 2021

TypeScript Weekly Issue #162 — January 26, 2021 Deprecating Function Signatures Using Function Overloads This post explains how to deprecate a specific function signature using TypeScript's

TypeScript 4.2 Beta, Name Your Generics

Friday, January 15, 2021

TypeScript Weekly Issue #161 — January 13, 2021 Announcing TypeScript 4.2 Beta The beta of TypeScript 4.2 has been released and ships with long-awaited smarter type alias preservation, leading/middle

You Might Also Like

Daily Coding Problem: Problem #1425 [Easy]

Sunday, April 28, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Microsoft. Suppose an arithmetic expression is given as a binary tree. Each leaf is an

PD#571 Software Design Principles I Learned the Hard Way

Sunday, April 28, 2024

If there's two sources of truth, one is probably wrong. And yes, please repeat yourself. ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

When Procrastination is Productive & Ghost integrating with ActivityPub

Sunday, April 28, 2024

Automattic, Texts, and Beeper join forces to build world's best inbox, Reflect launches its iOS app, how to start small rituals, and a lot more in this week's issue of Creativerly. Creativerly

C#503 Building pipelines with System.Threading.Channels

Sunday, April 28, 2024

Concurrent programming challenges can be effectively addressed using channels ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

RD#453 Get your codebase ready for React 19

Sunday, April 28, 2024

Is your app ready for what's coming up in React 19's release ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

☁️ Azure Weekly #464 - 28th April 2024

Sunday, April 28, 2024

Azure Weekly Newsletter Issue #464 powered by endjin Welcome to issue 464 of the Azure Weekly Newsletter. In AI we have a good mix of high-level and deep-dive technical articles. Next-Gen Customer

Tesla profits tumble, Fisker flatlines, and California cities battle for control of AVs

Sunday, April 28, 2024

Plus, an up-close look at the all-electric Mercedes G-Wagen and more View this email online in your browser By Kirsten Korosec Sunday, April 28, 2024 Welcome back to TechCrunch Mobility — your central

Sunday Digest | Featuring 'The Countries With the Most Air Pollution in 2023' 📊

Sunday, April 28, 2024

Every visualization published this week, in one place. Visual Capitalist Sunday Digest logo Apr 28, 2024 | View Online | Subscribe | VC+ The Best of This Week's Visuals Presented by Voronoi: The

Android Weekly #620

Sunday, April 28, 2024

View in web browser 620 April 28th, 2024 Articles & Tutorials Sponsored How DoorDash Manages Mobile Releases Ever wonder how the big names in mobile engineering manage the human side of their app

President Biden signs TikTok bill

Sunday, April 28, 2024

Plus: Robotaxis face new legislation in California and more View this email online in your browser By Anthony Ha Sunday, April 28, 2024 Image Credits: Bryce Durbin/TechCrunch A bill forcing TikTok