-
Notifications
You must be signed in to change notification settings - Fork 12.8k
5.5 deprecations are no-ops, not errors #58313
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
5.5 deprecations are no-ops, not errors #58313
Conversation
@@ -4593,10 +4594,10 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg | |||
} | |||
else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would probably be even better to add new diags in the middle here that says "is deprecated and has stopped functioning", since it'll be in future tense even when we're on like TS 5.6.
Sorry about this; I think I made this stricter than you intended when I refactored things a bit back in 5.0. |
@@ -1,8 +1,8 @@ | |||
error TS5102: Option 'noImplicitUseStrict' has been removed. Please remove it from your configuration. | |||
error TS5101: Option 'noImplicitUseStrict' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Like Jake said,
error TS5101: Option 'noImplicitUseStrict' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. | |
error TS5101: Option 'noImplicitUseStrict' is deprecated and has stopped functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. |
would be better. I'll approve, but we should probably update this.
Going to merge for the beta |
In #51000 we said
So the correct behavior under e.g.
is to not error, but instead to pretend we didn't see
keyofStringsOnly