-
Notifications
You must be signed in to change notification settings - Fork 91
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
fix(types): export IAvatarProps and ILabelProps #1215
Conversation
packages/dropdowns/src/index.ts
Outdated
@@ -28,5 +28,5 @@ export { MediaItem } from './elements/Menu/Items/MediaItem'; | |||
export { NextItem } from './elements/Menu/Items/NextItem'; | |||
export { PreviousItem } from './elements/Menu/Items/PreviousItem'; | |||
export type { GARDEN_PLACEMENT, POPPER_PLACEMENT } from './utils/garden-placements'; | |||
|
|||
export type { ILabelProps } from './elements/Fields/Label'; |
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.
Do we need to export all interfaces from these subcomponents in Dropdown retroactively? π€
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.
All applicable element interfaces should be exported. See https://github.com/zendeskgarden/react-components/blob/main/packages/buttons/src/index.ts
+1! We are Typescriptfying some components that are wrappers for some of the Dropdown components and it would help a lot if we had these! |
Added all available interfaces to the export for dropdown. For other components, we can open up new PRs for that. At present course, this will go out in next week's release on Wed 29th. |
Description
Some developers need access to
ILabelProps
andIAvatarProps
in order to extend them.ILabelProps
IAvatarProps
Checklist
designer as a reviewer)
yarn start
)?bedrock
)