hxtsdgen
hxtsdgen copied to clipboard
abstract gen error
https://github.com/hamaluik/haxe-glm
eg @:expose("glm.Mat2") abstract Mat2(Mat2Base)
then ts
export namespace glm { class Mat2 { private constructor(); static _new(_r0c0: number, _r0c1?: number, _r1c0?: number, _r1c1?: number): glm.Mat2Base;
@longde123 Is this still happening for you with the latest hxtsdgen and Haxe versions? If so, could you describe what you'd expect to be generated instead?
I'm afraid this kind of abstract can't be really exported: this requieres compiler awareness to rewrite code to use this kind of static methods to create/operate on the abstracted types.