Hi,
I think you should do that :
---
@:jsRequire('@lib/lib.js'), 'Api')
extern class Api {
...
}
---
package api.test;
@:jsRequire('@lib/lib.js'), 'Api','Test','Http')
extern class Http {
...
}
---
and finally:
---
import api.test.Http;
import Api;
// your code
---
In other words, I think your haxe extern shouldn't bother too much
that `Test` is actually a member of `Api`.
You might think there is an overhead in calling `require` twice
instead of once, but in practice it is generally negligible.
Best,
Clément
> --
> To post to this group
haxe...@googlegroups.com
>
http://groups.google.com/group/haxelang?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Haxe" group.
> For more options, visit
https://groups.google.com/d/optout.