TypeScript nerd • Author of TS-Pattern • Teacher • Staff Eng @datadoghq
Learn how to unleash TypeScript's full potential 👉 https://t.co/0GmYbCJKEj
Jan 9, 2023 • 4 tweets • 2 min read
TS-Pattern's inference just got a bit smarter!
✅ Unreachable branches do not type-check anymore
✅ `.with ` and `.otherwise` inherit type narrowing from previous branches
✅ ~15% type-checking performance improvement