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

MOON-267: Improve components typings #428

Open
wants to merge 14 commits into
base: develop
Choose a base branch
from
Open

MOON-267: Improve components typings #428

wants to merge 14 commits into from

Conversation

ffffffelix
Copy link
Collaborator

JIRA

https://jira.jahia.org/browse/MOON-267

Description

  • Improve component typings to allow generic HTML attributes
  • Be more strict with the type definition of controlled and uncontrolled components
  • Improve type descriptions (I hope)

@ffffffelix ffffffelix added the internal Changes only affect the internal API label Oct 7, 2024
*/
className?: string,
export type MenuItemProps = Omit<ListItemProps, 'onClick' | 'onMouseEnter' | 'onMouseLeave' | 'onKeyPress' | 'typographyVariant'> & {
// Export type MenuItemProps = Omit<React.ComponentPropsWithoutRef<'li'>, 'className' | 'role' | 'onClick' | 'onMouseEnter' | 'onMouseLeave' | 'onKeyPress'> & {
Copy link
Contributor

Choose a reason for hiding this comment

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

ok to remove?

gflores-jahia
gflores-jahia previously approved these changes Oct 11, 2024
@gflores-jahia
Copy link
Contributor

Btw, also noticing two different yarn release packages included as well. Not sure if both are needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Changes only affect the internal API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants