You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
The text was updated successfully, but these errors were encountered: