-
-
Notifications
You must be signed in to change notification settings - Fork 755
fix(ast/estree): fix TS type def for TSThisParameter
#9942
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
fix(ast/estree): fix TS type def for TSThisParameter
#9942
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
CodSpeed Instrumentation Performance ReportMerging #9942 will not alter performanceComparing Summary
|
|
I think this is fine, so merging. But cc @hi-ogawa for your information. |
Merge activity
|
Follow-on after #9913. `TSThisParameter` is a TS-only type, so its fields aren't optional the way the TS fields of JS types are. Fix the type def by using JS versions of added fields (`False` instead of `TsFalse` etc). Also re-order the fields, so that `name` is first. We want the object shape to be the same (same field order) for all types which are `Identifier`s in the ESTree AST.
d587d45 to
9d1035e
Compare

Follow-on after #9913.
TSThisParameteris a TS-only type, so its fields aren't optional the way the TS fields of JS types are.Fix the type def by using JS versions of added fields (
Falseinstead ofTsFalseetc).Also re-order the fields, so that
nameis first. We want the object shape to be the same (same field order) for all types which areIdentifiers in the ESTree AST.