Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to separate typedef and interface definitions #25

Merged
merged 5 commits into from Dec 2, 2019

Conversation

elsassph
Copy link
Owner

@elsassph elsassph commented Jul 10, 2019

Using option -D hxtsdgen_types_ts allows generating typedef/interface into an extra .d.ts file. Classes and functions are still emitted in the main .d.ts, and the concrete enums option still allows producing the extra enums .ts.

Enums/types file names can be customised:

-D hxtsdgen_enums_ts=othername
-D hxtsdgen_types_ts=somename

For safer code generation, Haxe types are now flattened, e.g. com.foo.Thing -> com_foo_Thing.

@elsassph elsassph merged commit 16f337d into master Dec 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants