GeistHaus
log in · sign up

Effective TypeScript › TypeScript Splits the Atom!

effectivetypescript.com

TypeScript's type system has grown steadily more powerful over the past five years, allowing you to precisely type more and more patterns in JavaScript. The upcoming TypeScript 4.1 release includes a particularly exciting new addition to the type system: template literal types. Template literal types solve a long-standing gap in TypeScript's type system and, as I'll argue at the end of the post, they solve it in a particularly TypeScripty way. To understand template literal types, let's start with a seemingly simple question: what can't you type?

2 pages link to this URL
Tidy TypeScript: Name your generics

My book TypeScript in 50 Lessons features interludes. Short texts on TypeScript culture that provide room to breathe between heavy, technical tutorials. One of those interludes gives some opinionated advice on how to name generic variables.

0 inbound links en WebWeb OpsDevOpsPerformanceFront-EndJavaScriptCSS