DEV Community

TypeScript

Optional static type-checking for JavaScript.

Posts

đź‘‹ Sign in for the ability to sort posts by relevant, latest, or top.
The Command Pattern with Discriminated Unions: A 90-Line Undo/Redo

The Command Pattern with Discriminated Unions: A 90-Line Undo/Redo

1
Comments
13 min read
The Strategy Pattern in TypeScript: Discriminated Unions Beat Subclasses

The Strategy Pattern in TypeScript: Discriminated Unions Beat Subclasses

1
Comments
10 min read
Build a Saga Orchestrator in TypeScript with Effect

Build a Saga Orchestrator in TypeScript with Effect

1
Comments
11 min read
Building a tRPC Router from First Principles

Building a tRPC Router from First Principles

1
Comments
11 min read
Stop Writing `for` Loops in TypeScript. 2026 Way to Pipeline Data.

Stop Writing `for` Loops in TypeScript. 2026 Way to Pipeline Data.

1
Comments
9 min read
TypeScript Project References: 11-Minute Builds Down to 3

TypeScript Project References: 11-Minute Builds Down to 3

1
Comments
10 min read
Build a Circuit Breaker in TypeScript in 80 Lines

Build a Circuit Breaker in TypeScript in 80 Lines

1
Comments
11 min read
Higher-Kinded Types in TypeScript: 4 Workarounds and When to Use Each

Higher-Kinded Types in TypeScript: 4 Workarounds and When to Use Each

1
Comments
12 min read
Laravel Collections Are Just Better Arrays. TypeScript Has 90% Too.

Laravel Collections Are Just Better Arrays. TypeScript Has 90% Too.

1
Comments
9 min read
The package.json exports Map Is the Most Important File You're Writing Wrong

The package.json exports Map Is the Most Important File You're Writing Wrong

1
Comments
11 min read
Build a Type-Safe Event Bus in TypeScript

Build a Type-Safe Event Bus in TypeScript

1
Comments
12 min read
Modernizing Bluetooth Printing in React Native 🚀

Modernizing Bluetooth Printing in React Native 🚀

Comments
1 min read
Phantom Types in TypeScript: Stop Mixing Kilograms and Pounds at Compile Time

Phantom Types in TypeScript: Stop Mixing Kilograms and Pounds at Compile Time

1
Comments
11 min read
A Token Bucket Rate Limiter: a 50-Line In-Memory + 95-Line Redis Variant in TypeScript

A Token Bucket Rate Limiter: a 50-Line In-Memory + 95-Line Redis Variant in TypeScript

1
Comments
12 min read
State Machines in TypeScript: A 60-Line Type-Safe Engine

State Machines in TypeScript: A 60-Line Type-Safe Engine

1
Comments
11 min read
đź‘‹ Sign in for the ability to sort posts by relevant, latest, or top.