DIFF.BLOG
New Following Discover Jobs
More
Top Writers Suggest a blog Upvotes plugin
Report bug Contact About Privacy
+
Create new post Create new blog
Add your blog
Sign up
Topics
Follow your own topics →
Menu
New Following Discover Jobs Top Writers
More
Suggest a blog Upvotes plugin Report bug Contact About
Sign up
Privacy Policy
The home for great developer writing.
We surface the best developer writing from thousands of independent blogs, updated daily.
Join Diff.blog
TOPICS

Narrowing TypeScript Unions without the `in` operator

· 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
By continuing, you agree to our Privacy Policy.