genes
genes copied to clipboard
Generates split ES6 modules and Typescript definitions from Haxe modules.
I made a poc for #48 implementing the concept of prefixing types with "$" when inside the module they are defined. It is quite ugly right now because I just...
Fix #50
Generate `let` and add `-D js-es=6` after this is released: https://github.com/HaxeFoundation/haxe/pull/9280
for some reasons connected with relative file paths I would need to be able to generate all the js and ts files in one folder instead of having the files...
test with haxeui and got this error ```haxe Register.hx:62 Uncaught TypeError: resolve.__init__ is not a function at Function.res.__init__ (Register.hx:62) at new res (Register.hx:62) at new HBox2 (HBox.hx:10) at MainUIView2.new (ComponentMacros.hx:577)...
hello, how can import a relative path with genes? for example i have create a project and in this file haxe https://github.com/francescoagati/test-genes-dts2hx/blob/main/src/subora/Subora.hx genes create this file https://github.com/francescoagati/test-genes-dts2hx/blob/main/subora/Subora.js where there is...
```haxe Promise != cast js.lib.Promise; // should be false, but got true // name clash with js.lib.Promise class Promise {} ``` ref: - https://nodejs.org/api/globals.html - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects
```haxe abstract Foo(Int) { public static final INST: Foo = null; } ``` generated: ```ts export declare class Foo_Impl_ { static INST: number } ``` Note the extraneous `` before...
```haxe import js.lib.Promise as AliasPromise; typedef TypedefPromise = js.lib.Promise; class Main { static function main() {} public static function f1(p: js.lib.Promise): Void {} // good public static function f2(p: AliasPromise):...
See: https://github.com/benmerckx/genes/pull/35#issuecomment-778112265