4 ms·
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
by _bxg1 7y 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.