-
Notifications
You must be signed in to change notification settings - Fork 12.9k
fix(37578): Deprecate variable name AllowQualifedNameInPlaceOfIdentifier #38726
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
Changes from all commits
85ec987
b40e2a1
a767a37
418c232
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -3691,7 +3691,9 @@ namespace ts { | |||||
|
||||||
// Error handling | ||||||
AllowThisInObjectLiteral = 1 << 15, | ||||||
AllowQualifedNameInPlaceOfIdentifier = 1 << 16, | ||||||
AllowQualifiedNameInPlaceOfIdentifier = 1 << 16, | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In #37578 I asked to deprecate misspelled variable instead of removing it, as it may break backward-compatibility (in linters, etc.) It was previously done here, for example: TypeScript/src/compiler/types.ts Lines 3380 to 3381 in a1c8608
What do you think about it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh yeah, that sounds much better than deleting it. I just updated my code to deprecate it instead. |
||||||
/** @deprecated AllowQualifedNameInPlaceOfIdentifier. Use AllowQualifiedNameInPlaceOfIdentifier instead. */ | ||||||
AllowQualifedNameInPlaceOfIdentifier = AllowQualifiedNameInPlaceOfIdentifier, | ||||||
AllowAnonymousIdentifier = 1 << 17, | ||||||
AllowEmptyUnionOrIntersection = 1 << 18, | ||||||
AllowEmptyTuple = 1 << 19, | ||||||
|
@@ -3702,7 +3704,7 @@ namespace ts { | |||||
AllowNodeModulesRelativePaths = 1 << 26, | ||||||
/* @internal */ DoNotIncludeSymbolChain = 1 << 27, // Skip looking up and printing an accessible symbol chain | ||||||
|
||||||
IgnoreErrors = AllowThisInObjectLiteral | AllowQualifedNameInPlaceOfIdentifier | AllowAnonymousIdentifier | AllowEmptyUnionOrIntersection | AllowEmptyTuple | AllowEmptyIndexInfoType | AllowNodeModulesRelativePaths, | ||||||
IgnoreErrors = AllowThisInObjectLiteral | AllowQualifiedNameInPlaceOfIdentifier | AllowAnonymousIdentifier | AllowEmptyUnionOrIntersection | AllowEmptyTuple | AllowEmptyIndexInfoType | AllowNodeModulesRelativePaths, | ||||||
|
||||||
// State | ||||||
InObjectTypeLiteral = 1 << 22, | ||||||
|
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.
the new value is the same as the old, so you should replace the old usage instead of adding to it.
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.
Fixed