Skip to content
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

Support extracting defaults from renamed destructuring #507

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mrginglymus
Copy link

@mrginglymus mrginglymus commented Aug 16, 2024

Re-opening #484 now there seems to be some activity on this repository


Where a property is renamed in a destructuring, react-docgen-typescript fails to detect the default as it currently reads it under the renamed name.

This PR fixes ensures we read the original name when detecting defaults from destructuring.

@mrginglymus mrginglymus changed the title Rename destructure Support extracting defaults from renamed destructuring Aug 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant