Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
_jumble
· 4y ago · 0 comments
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];`
Comments
No comments yet.
Better HN