TypeScript 4.8 RC, Exploration of Type Narrowing

TypeScript Weekly

Issue #194 — August 12, 2022

Announcing TypeScript 4.8 RC

The release candidate of TypeScript 4.8 improves type narrowing and compatibility for union and intersection types. It also makes rebuilds faster when using the --build, --watch, or --incremental flags. And, as always, there’s a whole bunch of smaller improvements as well.

Daniel Rosenwasser

Objects, Functions, and Type Narrowing

An exploration of how TypeScript narrows types and in which circumstances it decides to reset type narrowing. It’s interesting to see what tradeoff TypeScript makes between safety, predictability, and convenience.

Josh Goldberg

New White Paper: Guide to Code Reviews

Sema has just published a white paper on why code reviews matter and how to integrate them effectively into your team and organization. The white paper includes: why code reviews are important, how to explain the benefits of code review to a non-technical CEO, and the Six Golden Rules of Code Reviews. You can read the white paper here.

Sema Technologies (Sponsored)

How TypeScript Conditional Types Work

Conditional types in TypeScript let us check if a type conforms to a certain condition, and return types based on that.

Johnny Simpson

How Prisma Adapts Result Types

A walkthrough of how Prisma Client leverages conditional types to adapt result types based on the arguments provided to a function.

Patrick Kerschbaum

Curated by Marius Schulz
Twitter / Blog / Email

Key phrases

Older messages

Extreme Explorations of the Type System

Friday, August 5, 2022

TypeScript Weekly Issue #193 — August 5, 2022 Extreme Explorations of TypeScript's Type System Developers have pushed the bounds of type operations possible in the type system to write some pretty

TypeScript 4.8 Beta, TypeScript Tips & Tricks, Monorepos

Friday, June 24, 2022

TypeScript Weekly Issue #192 — June 24, 2022 Announcing TypeScript 4.8 Beta The beta release of TypeScript 4.8 improves type narrowing and compatibility for union and intersection types. It also makes

TypeScript 4.7 RC, Migrating Millions of Lines

Tuesday, May 24, 2022

TypeScript Weekly Issue #191 — May 24, 2022 Announcing TypeScript 4.7 RC The release candidate of TypeScript 4.7 adds several new features related to ECMAScript module support in Node. It also ships

The Ultimate TypeScript Thread, Ember's Road to TypeScript

Thursday, May 5, 2022

TypeScript Weekly Issue #190 — May 5, 2022 The Ultimate TypeScript Thread In this fantastic Twitter thread, Matt keeps sharing TypeScript tips to turn you into a TypeScript wizard. Highly recommended!

TypeScript and Set Theory, Understanding “keyof typeof”

Thursday, April 21, 2022

TypeScript Weekly Issue #189 — April 21, 2022 Types as Comments with the TypeScript Team Ryan Cavanaugh and Daniel Rosenwasser talk about the Type Annotations ECMAScript proposal in a JS Party episode

You Might Also Like

🔥 Announcing Galileo Protect: Real-Time Hallucination Firewall*

Monday, May 6, 2024

Unveiling Galileo Protect – the first GenAI firewall built for the enterprise! ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Siri's AI upgrade 🤖, Tesla Supercharger chaos ⚡, AI engineer burnout 👨‍💻

Monday, May 6, 2024

Safari, Spotlight Search, and Siri will gain significant AI-related enhancements. Apple's AI model will generate basic responses entirely on-device. Sign Up |Advertise|View Online TLDR Together

80% Off iPhone Photo Academy!

Monday, May 6, 2024

Hi there, Are you ready to dramatically improve your iPhone photography skills? We all know that the iPhone camera is extremely powerful, but most of us still manage to take a lot of photos that aren

Architecture Weekly #178 - 6th May 2024

Monday, May 6, 2024

This time, we discussed biases. Biases on the perspective on our technologies, so not seeing their evolutions. We also checked how biases can impact our knowledge, collaboration and eventually also the

WP Weekly 192 - WP Biz - Brands Merged, Woo Cart Popup, Fastest Hosting

Monday, May 6, 2024

Read on Website WP Weekly 192 / WP Biz The 'business of WordPress' is buzzing for sure, be it the acquisition of plugins or the massive Envato ownership change. Also, WordPress content brands

SRE Weekly Issue #423

Monday, May 6, 2024

View on sreweekly.com A message from our sponsor, FireHydrant: FireHydrant is now AI-powered for faster, smarter incidents! Power up your incidents with auto-generated real-time summaries,

⚠️ Avoiding AI Scams on Social Media — An Open Source Google Photos Alternative

Sunday, May 5, 2024

Also: Reviewing the Customizable Drop Mechanical Keyboard, and More! How-To Geek Logo May 5, 2024 📩 Get expert reviews, the hottest deals, how-to's, breaking news, and more delivered directly to

Daily Coding Problem: Problem #1432 [Medium]

Sunday, May 5, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This question was asked by Snapchat. Given the head to a singly linked list, where each node also has a “random”

PD#572 Good Ideas in Computer Science

Sunday, May 5, 2024

Ideas every programmer likes and why Garbage Collection and Object Oriented Programming don't count ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

RD#454 API Layer & Fetch Functions

Sunday, May 5, 2024

ixing API and UI code quickly leads to messy and unmaintainable code ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌