We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This is an issue with #2661 that makes it crash in certain cases. cc @eltonio450
Consider something like https://astexplorer.net/#/gist/dea688bfbbfb2b2a2ffc3b4e293e0a01/63d1542090fe4a6545194562b88ffa34d7b22c83.
The interface body here consists of a TSPropertySignature and a TSIndexSignature. The foundDeclaredPropertiesList is thus not actually a list of declared properties: https://github.com/yannickcr/eslint-plugin-react/pull/2661/files#diff-3ed4052fa9471077711e82f482c3f819R304
TSPropertySignature
TSIndexSignature
foundDeclaredPropertiesList
When iterating through them, attempting to access tsPropertySignature.key.name on the index signature in https://github.com/yannickcr/eslint-plugin-react/pull/2661/files#diff-3ed4052fa9471077711e82f482c3f819R317 fails, because the index signature has no key property.
tsPropertySignature.key.name
key
The text was updated successfully, but these errors were encountered:
830bde7
Thanks, the repro helped a lot. Will release a patch tomorrow.
Sorry, something went wrong.
whoah, it's been fast 😃 !
Thank you, and sorry for missing it :(
v7.20.3 is released.
No branches or pull requests
This is an issue with #2661 that makes it crash in certain cases. cc @eltonio450
Consider something like https://astexplorer.net/#/gist/dea688bfbbfb2b2a2ffc3b4e293e0a01/63d1542090fe4a6545194562b88ffa34d7b22c83.
The interface body here consists of a
TSPropertySignature
and aTSIndexSignature
. ThefoundDeclaredPropertiesList
is thus not actually a list of declared properties: https://github.com/yannickcr/eslint-plugin-react/pull/2661/files#diff-3ed4052fa9471077711e82f482c3f819R304When iterating through them, attempting to access
tsPropertySignature.key.name
on the index signature in https://github.com/yannickcr/eslint-plugin-react/pull/2661/files#diff-3ed4052fa9471077711e82f482c3f819R317 fails, because the index signature has nokey
property.The text was updated successfully, but these errors were encountered: