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
Some of them can be discriminated by class constructor names, others can be discriminated by the type of value (string vs number for example). Currently gen_js_api does not seem to support this use cases. Would be great to have such feature.
The text was updated successfully, but these errors were encountered:
Lupus
changed the title
Enums based on JS class name and typeof?
Unions based on JS class name and typeof?
Sep 30, 2021
TypeScript very often has the following unions defined:
Some of them can be discriminated by class constructor names, others can be discriminated by the type of value (string vs number for example). Currently gen_js_api does not seem to support this use cases. Would be great to have such feature.
The text was updated successfully, but these errors were encountered: