3 ms·
Thanks for elaborating on the distinction. User defined type guards can get you some of the way there to distinguishing "int | int", but you don't get it for fr
by fleshweasel 11y ago
Thanks for elaborating on the distinction. User defined type guards can get you some of the way there to distinguishing "int | int", but you don't get it for free-- the reality of being a superset of JavaScript.
https://gist.github.com/RikkiGibson/74fa3dbfdb1b2d7ab86d https://gist.github.com/RikkiGibson/74fa3dbfdb1b2d7ab86d
- lomnakkus 11y agoOh, wow, that's pretty evil code! :)