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
enum definition is generated in d.ts from enum type of rust, but the actual code in JS is not compatible with TS. This can cause unexpected errors for example in reverse mappings.
Describe the Bug
enum
definition is generated ind.ts
fromenum
type of rust, but the actual code in JS is not compatible with TS. This can cause unexpected errors for example in reverse mappings.Steps to Reproduce
This code will be converted to JS:
and TS (in
d.ts
):but these are not completely compatible.
Expected Behavior
Consistency should be kept.
Actual Behavior
We can make JS code compatible with TS like this:
or can also do TS definition compatible with JS.
The text was updated successfully, but these errors were encountered: