Hacker News new | ask | show | jobs
by _bxg1 2290 days ago
Possibly. I've had trouble getting TypeScript to discriminate object unions in the past without manually writing type guards, which are cumbersome. This is one of the few things Flow is actually better at.