Reusable AST guards can lose child-property narrowing.
With is-kit, I compose existing ts.isX guards with a generic refineKey() helper while preserving parent + child narrowing. 🔧
dev.to/nyaomaru/typ...
dev.to
TypeScript Compiler API: Preserving Child Node Narrowing in Reusable Type Guards 🔧
Hoi hoi! 👋 I'm @nyaomaru, a frontend engineer exploring new possibilities with Jev 😸 (I'm also...