Antriel / phaser-ts2hx

Convert Phaser's TypeScript definitions to Haxe externs.
MIT License
3 stars 1 forks source link

EitherType<> doesn't work properly as property/method return type #1

Open Antriel opened 7 years ago

Antriel commented 7 years ago

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.