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

add types to Menu component #185

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

johanrd
Copy link

@johanrd johanrd commented Dec 5, 2023

No description provided.

import type Items from './menu/items';

interface MenuSignature {
Args: {
Copy link
Collaborator

Choose a reason for hiding this comment

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

are all of these public API?
seems like many are private and shouldn't be exposed

Copy link
Author

Choose a reason for hiding this comment

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

thanks, good catch, these types were actually meant to be on the button component.

I have removed these now. If you find others, I would be happy to know.

guid = `${guidFor(this)}-tailwindui-menu-item`;
element;
element?: HTMLElement | null;
Copy link
Author

Choose a reason for hiding this comment

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

TS complained about this one, probably since the element is registered from the item-element component, and not item directly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants