-
Notifications
You must be signed in to change notification settings - Fork 255
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
v2.0.0 - Regression in parsing @default #366
Comments
Thanks @bebraw! Would love to get this into Storybook 6.3 if there's a fix in soon. |
This is due to using TS 4.3 changes the type of The unfortunate thing is that the changes needed to support both older and newer TS versions are pretty minimal, as shown in this branch commit (the rest of the change is for testing)--so supporting 4.3 didn't actually need to be a breaking change. It's especially unfortunate because this means that if anything using this library (such as storybook) wants to support 4.3, they must also require consumers to upgrade to 4.3, which may not be feasible right away. I'd be happy to submit a PR from this branch to restore support for older TS if it's not too odd to revert the constraint that prompted a major release. Right now the branch has tests confirming support back to 3.0 but I could change it to not go back quite that far if desired. (My team's project is currently on 4.1.) |
There was no activity for a long time. The issue will be closed soon. |
Closing this issue as obsolete. |
While trying to upgrade react-docgen-typescript-plugin to use v2.0.0 in order to get the
.trim()
fix in, I discovered a small regression related to parsing@default
.I've set up two repositories for you to check:
yarn test
Here are some screenshots I took during the investigations:
The text was updated successfully, but these errors were encountered: