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

No global constants in index.d.ts #28

Closed
Taras55 opened this issue Apr 27, 2019 · 2 comments
Closed

No global constants in index.d.ts #28

Taras55 opened this issue Apr 27, 2019 · 2 comments

Comments

@Taras55
Copy link

Taras55 commented Apr 27, 2019

This can be fixed by adding

{% for child in enu.children -%}
const {{ child.name }}: {{ enu.name }};
{% endfor %}

between

enum {{ enu.name }} {
    {% for child in enu.children -%}
    {{ child.name }},
    {% endfor %}
}

and

{% endfor %}

in file generator/templates/typescript-ts.njk

maierfelix added a commit that referenced this issue May 17, 2019
@maierfelix
Copy link
Owner

Hey @Taras55 , I pushed the fixes, could you approve that they are correct?

@maierfelix
Copy link
Owner

Expecting this to be solved

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

No branches or pull requests

2 participants