-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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 control allowed source version with newer TS version #7573
Comments
javac also has a |
To workaround microsoft/TypeScript#7573 we must remove the readonly keyword from generated .d.ts files. This solution will not scale, but will probably buy enough time to require our users move to a 2.0 beta.
To workaround microsoft/TypeScript#7573 we must remove the readonly keyword from generated .d.ts files. This solution will not scale, but will probably buy enough time to require our users move to a 2.0 beta.
To workaround microsoft/TypeScript#7573 we must remove the readonly keyword from generated .d.ts files. This solution will not scale, but will probably buy enough time to require our users move to a 2.0 beta.
To workaround microsoft/TypeScript#7573 we must remove the readonly keyword from generated .d.ts files. This solution will not scale, but will probably buy enough time to require our users move to a 2.0 beta.
To workaround microsoft/TypeScript#7573 we must remove the readonly keyword from generated .d.ts files. This solution will not scale, but will probably buy enough time to require our users move to a 2.0 beta.
To workaround microsoft/TypeScript#7573 we must remove the readonly keyword from generated .d.ts files. This solution will not scale, but will probably buy enough time to require our users move to a 2.0 beta.
To workaround microsoft/TypeScript#7573 we must remove the readonly keyword from generated .d.ts files. This solution will not scale, but will probably buy enough time to require our users move to a 2.0 beta.
To workaround microsoft/TypeScript#7573 we must remove the readonly keyword from generated .d.ts files. This solution will not scale, but will probably buy enough time to require our users move to a 2.0 beta.
To workaround microsoft/TypeScript#7573 we must remove the readonly keyword from generated .d.ts files. This solution will not scale, but will probably buy enough time to require our users move to a 2.0 beta. Closes #8003
Where as limiting the syntax to a certain set is doable, the semantics are not. Freezing the syntax but adopting new semantics still does not guarantee that the code (or generated declarations) will behave the same way on older tool sets. for instance a change to the overload resolution or inference rules can change types of variables, generate/not generate errors, and generate different definition files. moreover, the same syntax in TS 1.7 (specialized signatures) was used in TS 1.8 to mean a different construct, (string literal types) with different semantics and slightly different overload resolution logic. |
javac has the
-source
option. from https://docs.oracle.com/javase/8/docs/technotes/tools/windows/javac.html:The use case is when a team wants to take advantage of bugfixes or features in the compiler, without committing to upgrade all their other tooling to understand new syntax or semantics.
For example, if I want to use @vladima pathMapping semantics, my users can start using the
readonly
modifier because it's also in the same version of TypeScript, now my other tooling fails because it uses TS 1.8The text was updated successfully, but these errors were encountered: