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