News for hackers. Stuff that matters.
Re:An introduction to type programming in TypeScript by _jumble on Wednesday February 02, 2022 @09:14AM (#30177791)
Yes, and generating those unions from a const array gives you even further flexibility with runtime access: `const myStrArray = ["a", "b", "c"] as const; type MyStrType = typeof myStrArray[number];`

There are no comments on this comment yet.