With the TypeScript 2.0 release candidate, Microsoft’s typed superset of JavaScript mimics a tagged unions type capability featured in languages like Rust and Swift. Through this feature, developers ...