Skip to content

Fixed Type Error in List Component #6687

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

Merged
merged 5 commits into from
Mar 31, 2023

Conversation

Prakhargoel8c
Copy link
Contributor

What does this PR do?

Fixed Type Error in List Component

Where should the reviewer start?

src/js/components/List/index.d.ts

What testing has been done on this PR?

Manually tested

How should this be manually tested?

Check type error when using children in List component

Do the grommet docs need to be updated?

No

Should this PR be mentioned in the release notes?

Yes

Is this change backwards compatible or is it a breaking change?

Backwards compatible.

Updated children type in List to be same as Select
@halocline halocline added needs attention To alert grommet team that a PR has been waiting for the author for a while typescript Typescript enhancements and bugs labels Mar 20, 2023
@jcfilben jcfilben added PRty Biweekly PR reviews by grommet team with hoping of closing such PRs and removed needs attention To alert grommet team that a PR has been waiting for the author for a while labels Mar 29, 2023
@jcfilben jcfilben self-requested a review March 30, 2023 18:06
Copy link
Collaborator

@jcfilben jcfilben left a comment

Choose a reason for hiding this comment

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

It looks like ulProps also defines children. We should omit the children type definition from ulProps and just have it defined in ListProps.

@Prakhargoel8c Prakhargoel8c requested a review from jcfilben March 31, 2023 16:10
Copy link
Collaborator

@jcfilben jcfilben left a comment

Choose a reason for hiding this comment

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

Thank you for fixing this!

@ericsoderberghp ericsoderberghp merged commit e0aa27c into grommet:master Mar 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PRty Biweekly PR reviews by grommet team with hoping of closing such PRs typescript Typescript enhancements and bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants