A Typed pluck: exploring TypeScript 2.1’s mapped types

One of underscore.js’s most useful methods is _.pluck. It takes an array of objects and “plucks” one property out of each, returning an……

Similar

Announcing TypeScript 5.6

Today we’re excited to announce the release of TypeScript 5.6! If you’re not familiar with TypeScript, it’s a language that builds on top of JavaScript by adding syntax for types. Types describe the shapes we expect of our variables, parameters, and funct... (more…)

Read more »

A safe router for TypeScript

I've been making web applications for some time now and one thing that keeps annoying me is the use of magic strings for declaring and matching routes. Webapps are getting more and more complex and static typing is getting more and more traction as a too... (more…)

Read more »

TypeScript’s Migration to Modules

One of the most impactful things we’ve worked on in TypeScript 5.0 isn’t a feature, a bug fix, or a data structure optimization. Instead, it’s an infrastructure change. In TypeScript 5.0, we restructured our entire codebase to use ECMAScript modules, and ... (more…)

Read more »