> Amin Khansari's Notes_
series SERIES

Designing with Types: A TypeScript + Effect Approach

Using TypeScript's type system and Effect's functional primitives to model domains, express business rules, and make illegal states unrepresentable.

When we write code, we often treat types as a safety net, a way to avoid errors and get better autocompletion. But types can do much more. They help us think about our problems, express business rules, model our domain, and make invalid states unrepresentable.

This series is inspired by Scott Wlaschin’s excellent Designing with types from F# for Fun and Profit. We’ll explore the same ideas but using TypeScript amplified by Effect. We’ll start at the micro level of individual types and functions, then progressively build toward more advanced patterns.

POSTS IN THIS SERIES

SEARCH POSTS

START TYPING TO SEARCH_