I've been burnt when I'm checking string based enums, so now it's not only does my code throw when I access a non-existent enum, but also the error _suggests_ what I might have wanted (yes, I know TS, I don't have it yet).
I'll share the code that solves this in a blog post.