Copy

TypeScript Weekly

Issue #183 — February 6, 2022

Hi there! 👋

This is the first issue of TypeScript Weekly in 2022. Welcome back if you've been with us last year already, and welcome aboard if you subscribed recently.

I took a break from the newsletter in January, but now we're back in full force. I thought we'd start the year by looking back at the most popular links from 2021, so I've compiled a list of the 10 most clicked posts from last year's issues.

There's lots of good content and helpful advice in these posts, I hope you find them useful. Enjoy!

Cheers,
Marius

#1: 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 they happen.

Stefan Baumgartner

#2: Speed Up Compilation of Your TypeScript Projects

How to speed up the compilation time of your TypeScript projects using the SWC compiler. It’s fast!

Adam Polak

#3: Tidy TypeScript: Avoid Traditional OOP Patterns

An opinionated piece about various OOP patterns to avoid in TypeScript, such as namespaces and abstract classes.

Stefan Baumgartner

#4: Announcing the New TypeScript Handbook

The TypeScript team has released a fresh re-write of the TypeScript Handbook, ramping up the scale, modernity, and scope of the language’s documentation.

Orta Therox

#5: 10 Bad TypeScript Habits to Break This Year

An opinionated list of 10 TypeScript habits that we all should break.

Daniel Bartholomae

#6: Sharing Types between Backend and Frontend Repos

How to keep TypeScript types in sync between a backend and frontend project in different repos, using shared types and Bit.

Fernando Doglio

#7: Write More Readable Code with TypeScript 4.4

TypeScript 4.4 ships with control flow analysis of aliased conditions. John outlines how this feature helps us improve the readability of our code.

John Reilly

#8: The Complete Guide to Immutability in TypeScript

How to use functional programming theory, the readonly modifier, and well-tested practices to apply immutability in TypeScript projects.

Gregory Pabian

#9: TypeScript: In Defense of any

An opinion piece by Stefan about why using the any type “is absolutely ok”, pushing back against the somewhat popular movement that the any type should be avoided at all costs.

Stefan Baumgartner

#10: Get the Best of TypeScript Control Flow Analysis

This article will show some simple type construction patterns, code writing habits, and compiler options that you can use to improve your application’s type inference without increasing its complexity.

Charly Poly

Curated by Marius Schulz
Twitter / Blog / Email