You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @rb1147x, this is indeed an issue in haxe, the problem is @:native isn't yet supported on typedefs. There are proposals and PRs to enable this like HaxeFoundation/haxe#9433 and HaxeFoundation/haxe#5105 but nothing has landed in the compiler yet
You may be able to change these to interfaces to fix for now (although it's not something dts2hx will do automatically because most of the time we need the properties of typedefs for other parts of the externs to work)
I agree this is a pain and it's one of the major long-term issues with haxe js externs
Using Puppeteer there is a function:
page.$eval
and several other functions using the$
character (more info: https://github.com/puppeteer/puppeteer/blob/v5.3.1/docs/api.md#pageselector).Externs get generated as
page.DollarEval
, however, the JS output keepsDollarEval
instead of converting to$eval
Example:
From Puppeteer externs generated by dts2hx:
Usage:
JS output:
Is this maybe a larger Haxe issue not supporting the
$
character in@:native
?Thanks.
The text was updated successfully, but these errors were encountered: