TypeScript Tip: Convert an Array of Strings into a String Literal Union Type | by Chad Murobayashi | JavaScript in Plain English
Minko Gechev on Twitter: "Const assertions in TypeScript allow you to define literal values where: - object literals get readonly properties - array literals become readonly tuples - literal types don't get
![make typescript show type hint for string literal when union with string primitive type - Stack Overflow make typescript show type hint for string literal when union with string primitive type - Stack Overflow](https://i.stack.imgur.com/QbY9W.png)