-
Notifications
You must be signed in to change notification settings - Fork 34
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
base: master
Are you sure you want to change the base?
Conversation
import type Items from './menu/items'; | ||
|
||
interface MenuSignature { | ||
Args: { |
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.
are all of these public API?
seems like many are private and shouldn't be exposed
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.
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; |
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.
TS complained about this one, probably since the element is registered from the item-element component, and not item directly?
No description provided.