Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
moogly
1y ago
0 comments
Share
The `as const` at the end will ensure the type of `Foo` is not widened to a `string`.
0 comments
default
newest
oldest
DidYaWipe
1y ago
I don't know JavaScript very well, so I'll take your word for it. Seems like a language flaw to me, though. How many times should you have to say something?
j
/
k
navigate · click thread line to collapse