refactor(linter/plugins): clarify types#20069
Merged
graphite-app[bot] merged 1 commit intomainfrom Mar 6, 2026
Merged
Conversation
This was referenced Mar 6, 2026
Member
Author
This was referenced Mar 6, 2026
63ddbdb to
8ee5a16
Compare
c0fdcb3 to
28b7eec
Compare
8ee5a16 to
f88a63f
Compare
28b7eec to
33b8af5
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
Refactors the JS plugin visitor compiler typing to use VisitorObject from its generated source type, avoiding the confusing Visitor alias in plugins/types.ts (which clashes with other “Visitor” concepts).
Changes:
- Replace
Visitortype import (alias) with directVisitorObjectimport fromgenerated/visitor.d.ts. - Update
addVisitorToCompiledsignature to acceptVisitorObject.
f88a63f to
e4f3e09
Compare
33b8af5 to
5f8e97f
Compare
e4f3e09 to
cd83465
Compare
5f8e97f to
35432f7
Compare
This was referenced Mar 6, 2026
camc314
approved these changes
Mar 6, 2026
Contributor
Merge activity
|
35432f7 to
dbd1cb6
Compare
cd83465 to
aacfef4
Compare
Base automatically changed from
om/03-06-test_linter_plugins_add_types_test_for_visitorobject_
to
main
March 6, 2026 17:38
Small refactor. Import `VisitorObject` from where it's actually defined, instead of the alias in `types.ts` which renames it to `Visitor`. We also have a different type called `Visitor` so using the alias is a bit confusing.
dbd1cb6 to
391ab14
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Small refactor. Import
VisitorObjectfrom where it's actually defined, instead of the alias intypes.tswhich renames it toVisitor. We also have a different type calledVisitorso using the alias is a bit confusing.