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
The types that are generated by the CLI tool are all compile-time only types aside from the enum type. Regular typescript enums contain both compile-time and runtime information and so need to be compiled into a js source in order to be correctly used.
If we switch to using const enums, then there is no need to compile the generated type file and it can behave more like a declaration file - which based on the structure of the output, seems like the original intent.
The text was updated successfully, but these errors were encountered:
The types that are generated by the CLI tool are all compile-time only types aside from the
enum
type. Regular typescript enums contain both compile-time and runtime information and so need to be compiled into a js source in order to be correctly used.If we switch to using
const enums
, then there is no need to compile the generated type file and it can behave more like a declaration file - which based on the structure of the output, seems like the original intent.The text was updated successfully, but these errors were encountered: