Closed sonygod closed 4 years ago
This should work, it should use ts.AnyOf2<>, what does the converted haxe code look like?
This is a problem with the types of paper.js,
Checking paper.d.ts in node_modules/paper after npm install paper
:
/**
* The fill color.
*/
fillColor: Color | null
Which is correctly translated to
/**
The fill color.
**/
var fillColor : Null<Color>;
how to support var fillColor : Null<Color|String>;?
from paper.js
or