Hacker News new | ask | show | jobs
by mezzode 2790 days ago
I've found myself preferring type guards for checking action type, since it avoids you having to have keep one big `Actions` union around that takes X amount of lines and really doesn't serve any other purpose.