Skip to content

const enums not being output correctly #4

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

Closed
frankwallis opened this issue Feb 5, 2015 · 2 comments
Closed

const enums not being output correctly #4

frankwallis opened this issue Feb 5, 2015 · 2 comments

Comments

@frankwallis
Copy link
Owner

This is because plugin-typescript uses the 'Language Service API' and there is currently an issue in TypeScript services.

As a temporary workaround I need to use a private copy of typescriptServices.js compiled from master.

@frankwallis
Copy link
Owner Author

In fact I would recommend against using ambient const enums entirely, the next version of TypeScript will enable single file compilation which will make everything much slicker. Under single-file compilation plugin-typescript will not need to load the entire dependency tree before compiling the files.

However, it will not be possible to use const enums when doing single-file compilation because the enum may not be defined when the file is read. The TypeScript compiler will emit a compiler error if you use ambient const enums when doing single file compilation.

@frankwallis
Copy link
Owner Author

this is resolved in 0.6.8 onwards

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

1 participant