I want a type to be defined differently depending on platform. Tried:
when defined JS:
type ...
type
when defined JS:
...
type X = when defined JS: ...
All above gave compile errors.
Sorry, I probably had some syntax error at first, this works:
when defined JS:
type ...
else:
type ...