Using string literals as type tags in TypeScript

Design question: I think I want a string literal as a type of tag. Here's my first shot: code
Was this page helpful?