#
DIFF.BLOG
New
Following
Discover
Jobs
More
Top Writers
Suggest a blog
Upvotes plugin
Report bug
Contact
About
Sign up
The home for great developer writing.
Discover the best posts from developers and engineering teams, all in one place.
Join now
→
Learn more
TOPICS
Narrowing TypeScript Unions without the `in` operator
129
·
Guilherme Simoes
·
Oct. 19, 2025, 12:12 a.m.
typescript
Union Types
programming techniques
software development
Summary
This blog post discusses a technique for narrowing TypeScript union types without using the `in` operator, aimed at improving type checking and usability in TypeScript programming.
Read full post on guilhermesimoes.github.io →
MORE POSTS LIKE THIS
Parse, don't validate — In a Language That Doesn't Want You To
llimllib's notes ·
Jun 30, 2026
typescript
programming techniques
Crumb - a small self-improving agent harness in under 200 lines of hand-written TypeScript. Bun runtime, no external libraries.
Zohaib ·
May 27, 2026
agent
Self-improving systems
Experiment: making TypeScript immutable-by-default
Evan Hahn ·
Nov 18, 2025
typescript
Immutable Programming
Forcing Error Handling in TypeScript: A Result Type Implementation
Harsh Rohila ·
Aug 24, 2025
typescript
error handling
How to Build RAG AI Agents with TypeScript
freeCodeCamp.org ·
Apr 16, 2025
RAG
AI agents
Demo: running TypeScript directly in Node.js
Axel Rauschmayer ·
Feb 20, 2025
typescript
Node.js
Discover more posts →
AUTHOR
RECENT POSTS FROM THE AUTHOR
Choose how you want to continue.
Continue with GitHub
Continue with Google