-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
feat(containedlist): added index.ts file for type generation #16302
feat(containedlist): added index.ts file for type generation #16302
Conversation
✅ Deploy Preview for v11-carbon-react ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 🚀
@@ -199,4 +204,6 @@ ContainedList.propTypes = { | |||
size: PropTypes.oneOf(['sm', 'md', 'lg', 'xl']), | |||
}; | |||
|
|||
ContainedList.ContainedListItem = ContainedListItem; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This threw me for a loop, I thought we had deprecated all instances where we were placing subcomponents as fields on the parent component object. Turns out this has been in there since the inception of this component.
It's not something we need to do in this PR, but I think it would make sense to deprecate this like we did for TextInput.PasswordInput here
// what's currently possible, a bit out of convention
<ContainedList>
<ContainedList.ContainedListItem/>
<ContainedList.ContainedListItem/>
</ContainedList>
// following the general convention we have would mean
// it wouldn't be a field on the object. The above
// wouldn't work, instead:
<ContainedList>
<ContainedListItem/>
<ContainedListItem/>
</ContainedList>
I can open a new issue for this 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
e70f08d
Closes #16206
Added index.ts for index.d.ts type generation
Changelog
New
Changed
ContainedListItem
Removed
Testing / Reviewing
No new perspectives for testing.