It seems that Haxe's EitherType<> is meant to be used only as method argument.
Possible solution is to generate multiple properties/methods with modified name (e.g. ${origName}_${typeName}), for each different type, mapping them all to correct property/method via @:native.
It seems that Haxe's EitherType<> is meant to be used only as method argument.
Possible solution is to generate multiple properties/methods with modified name (e.g.
${origName}_${typeName}
), for each different type, mapping them all to correct property/method via@:native
.