3 ms·
The `as const` at the end will ensure the type of `Foo` is not widened to a `string`.
by moogly 2y ago
The `as const` at the end will ensure the type of `Foo` is not widened to a `string`.
- DidYaWipe 2y agoI 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?