-
Notifications
You must be signed in to change notification settings - Fork 252
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
Sort enum types? #302
Comments
There was no activity for a long time. Closing this issue as obsolete. In case it is still valid, please, open a new one. |
Closing this issue as obsolete. |
@pvasek could this be reopened please? I'm getting complaints from users about union types being oddly sorted because of this same issue and would love to see it fixed. |
There was no activity for a long time. The issue will be closed soon. |
Closing this issue as obsolete. |
Opened a pull request for this functionality here: #503 |
Union ordering in TypeScript changes between versions and has no guarantee. Usually this is fine, but since
react-docgen-typescript
is often used for visual display it seems more important. E.g. something like1 | 2 | 3 | 4 | 5 | 6
could be outputted something like1 | 6 | 2 | 3 | 4 | 5
, which looks strange.Does it seem feasible to parse and sort unions?
The text was updated successfully, but these errors were encountered: