Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
feat(ast-spec): specifyPunctuatorToken'svalue 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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
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 onhttps://opencollective.com/typescript-eslint. As a thank you, your profile/company logo will be added to our main README which receives thousands of unique visitorsper day. |
MichaelDeBoey commentedJun 7, 2021
@bradzacher Looking at the error, I don't really know how to fix it tbh. |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
f37ecc1 to71aba31CompareMichaelDeBoey commentedJun 12, 2021
@bradzacher@JamesHenry Is there anything I still need to do for this one? |
nx-cloudbot commentedJun 12, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Nx Cloud ReportCI ran the following commands for commitedb5087. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch
Sent with 💌 fromNxCloud. |
Nx Cloud ReportCI ran the following commands for commit71aba31. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch
Sent with 💌 fromNxCloud. |
bradzacher left a comment
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 mapPunctuatorTokenToText 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
Uh oh!
There was an error while loading.Please reload this page.
PunctuatorToken'svalue typePunctuatorToken'svalue typeMichaelDeBoey commentedJun 13, 2021
@bradzacher Where do you want me to have |
bradzacher commentedJun 13, 2021
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 inb15a2b2
|
MichaelDeBoey commentedJun 13, 2021
@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 OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
…node-utils`' `TokenToText` interface as value for `PunctuatorToken`
bradzacher left a comment
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!
MichaelDeBoey commentedJun 14, 2021
Always happy to help out! |
As discussed in#3461 (comment)
This is technically a breaking change, but
ast-specis never published, so we shouldn't care I think.CC/@bradzacher