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
I like this approach as we have a few on our team that would prefer distinct types for rust enums - is there still a possibility of this becoming a feature?
Hey I'm really enjoying using this library so far :)
Have you thought about providing the option to export enum variants as distinct types?
Say I have
it will produce
However, while TS can infer if I'm correctly constructing a
ServerCommand
, it would be helpful to be able to type specific variants.So the result would end up something like this...
The text was updated successfully, but these errors were encountered: