-
-
Notifications
You must be signed in to change notification settings - Fork 781
fix(parser,linter): consider typescript declarations for named exports #10532
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(parser,linter): consider typescript declarations for named exports #10532
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. |
CodSpeed Instrumentation Performance ReportMerging #10532 will not alter performanceComparing Summary
|
|
I'll need to recall the reason for skipping typescript declarations (including merge declarations). |
743329a to
578af74
Compare
Probably yes, although it complicates semantic checks :-/ |
Only VariableDeclaration, FunctionDeclaration and ClassDeclaration were considered when collecting named export declarations for the module record. Now the parser also considers TSTypeAliasDeclaration, TSInterfaceDeclaration, TSEnumDeclaration, TSImportEqualsDeclaration and TSModuleDeclaration named export declarations of the module.
Maybe the other
decl.declaration.is_typescript_syntax()check inmodule_record.rsalso needs to be removed?Closes #10318
Closes #10556