HackerTrans
トップ新着トレンドコメント過去質問紹介求人

_jumble

no profile record

コメント

_jumble
·4 年前·議論
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];`