logoalt Hacker News

blue_pantstoday at 5:03 PM0 repliesview on HN

It is true, but it wasn't meant to be sound, so it's okay.

You can do this trick for type-checking emptiness of string literals

https://www.typescriptlang.org/play/?jsx=0#code/C4TwDgpgBAsg...