Hacker News new | ask | show | jobs
by lylepstein 3556 days ago
I believe you can, though I haven't tried it. Typescript will actually give you completion support for plain strings inside that switch statement, which is normally what I go with.