Add downlevel and typing support for const enum members in computed properties #1844
Labels
Declined
The issue was declined as something which matches the TypeScript vision
Suggestion
An idea for TypeScript
There are two things we can do by taking advantage of our static knowledge of const enums. One is that we can downlevel this without using an element access:
Another is that we can know the type of v. Specifically, we know that it has a property named 0 of type string, which we would not know if this were not a const enum member.
The text was updated successfully, but these errors were encountered: