Hi guys, quick question regarding the convert to JS generators.
It seems that they do not have any special handling for Option
types.
When an Option
is None
, the compiler mark it as 0. With no difference to a real value that might be 0.
My expectations were that None
will be translated to Null
or Undefined
, but even without those, just marking it as 0 seems weird.
Here is an example:
Is there a way for the generated JS converters to handle “undefined” in some way?