You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When stringEnums flag is set to true, the generated types for a map<string, T> (where T is an enum) do not generate correctly. It seems that the generated code is not respecting that stringEnums=true and is assuming the value is a number.
TS2322: Type 'number' is not assignable to type 'SomeEnumType'.
When
stringEnums
flag is set to true, the generated types for amap<string, T>
(where T is an enum) do not generate correctly. It seems that the generated code is not respecting thatstringEnums=true
and is assuming thevalue
is a number.Example:
Input
Output
The text was updated successfully, but these errors were encountered: