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

Follow-up fix of TS index signature definition for Group type. #11140

Merged
merged 1 commit into from
Dec 30, 2021

Conversation

EugeneKorshenko
Copy link
Contributor

Summary
This PR is the follow-up PR for: #11059 and for #11124
All explicitly defined keys should always follow the type defined at the index signature. So having any as a type for _id was just a hidden error.
Even more, _id as a key in the member of union type was redundant.

All explicitly defined keys should always follow the type defined at the index signature. So having `any` as a type for `_id` was just a hidden error.
Even more, `_id` as a key in the member of union type was redundant.
@EugeneKorshenko
Copy link
Contributor Author

@vkarpov15 please, take a quick look once you have a chance🙂

@DavideViolante
Copy link
Contributor

It seems correct, my snippets from #11059 works with this changes too.

@vkarpov15 vkarpov15 added this to the 6.1.5 milestone Dec 30, 2021
@vkarpov15 vkarpov15 added the typescript Types or Types-test related issue / Pull Request label Dec 30, 2021
Copy link
Collaborator

@vkarpov15 vkarpov15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👍

@vkarpov15 vkarpov15 merged commit 004f397 into Automattic:master Dec 30, 2021
@EugeneKorshenko EugeneKorshenko deleted the fix_typings_Group branch December 30, 2021 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
typescript Types or Types-test related issue / Pull Request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants