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 encountered an issue while using the transformSync function where it appears that enums and namespace types are not supported in strip-only mode. Specifically, the function fails to strip type annotations from enums and namespaces, leading to errors in the transformation process
The text was updated successfully, but these errors were encountered:
I just want to leave a quck "workaround", at least for string enums
constDirection={
Up ="up",
Down ="down",
Left ="left",
Right ="right",}asconst;typeDirection=(typeofDirection)[keyoftypeofDirection];
Important is as const. This way type Direction will be "up" | "down" | "left" | "right", wich should work pretty much (or maybe axacly?) like a string enum.
Hello,
I encountered an issue while using the
transformSync
function where it appears that enums and namespace types are not supported in strip-only mode. Specifically, the function fails to strip type annotations from enums and namespaces, leading to errors in the transformation processThe text was updated successfully, but these errors were encountered: