Support for conditional types has been added to TypeScript 2.8, the language that adds optional static types to JavaScript. TypeScript was developed by Microsoft, and is a superset of JavaScript that ...