-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat(ast-spec): specify PunctuatorToken
's value
type
#3496
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
Conversation
Thanks for the PR, @MichaelDeBoey! typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community. The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately. Thanks again! 🙏 Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently on https://opencollective.com/typescript-eslint. As a thank you, your profile/company logo will be added to our main README which receives thousands of unique visitors per day. |
@bradzacher Looking at the error, I don't really know how to fix it tbh. |
f37ecc1
to
71aba31
Compare
@bradzacher @JamesHenry Is there anything I still need to do for this one? |
Nx Cloud ReportCI ran the following commands for commit edb5087. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch
Sent with 💌 from NxCloud. |
Nx Cloud ReportCI ran the following commands for commit 71aba31. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch
Sent with 💌 from NxCloud. |
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.
Ideally I wouldn't want us to have to keep track of this 60 element union ourselves AND duplicate it into a separate interface map PunctuatorTokenToText
or other.
So if you can refactor the types so that we have
PunctuatorTokenToText
,TokenToText extends PunctuatorTokenToText
, andPunctuatorToken['value'] === values<PunctuatorTokenToText>
I'm all for that approach
PunctuatorToken
's value
typePunctuatorToken
's value
type
@bradzacher Where do you want me to have |
As long as you explicitly mark the TS import as an You can add this block to the typescript-eslint/packages/typescript-estree/package.json Lines 69 to 73 in b15a2b2
|
@bradzacher Just pushed the commits you asked for. I'm happy to change some things around if needed. |
packages/ast-spec/src/token/PunctuatorToken/PunctuatorTokenToText.ts
Outdated
Show resolved
Hide resolved
…node-utils`' `TokenToText` interface as value for `PunctuatorToken`
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.
lgtm - thanks for this!
Always happy to help out! |
As discussed in #3461 (comment)
This is technically a breaking change, but
ast-spec
is never published, so we shouldn't care I think.CC/ @bradzacher