-
Notifications
You must be signed in to change notification settings - Fork 350
fix(Dropdown): fix types #3131
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(Dropdown): fix types #3131
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
|
📦 Bundle Size Analysis ✅ No bundle size changes detected. Unchanged Components
📊 Summary:
|
User description
https://monday.monday.com/boards/3532714909/views/80492480/pulses/10052448934
PR Type
Bug fix
Description
Fix TypeScript types in Dropdown component callbacks
Remove unexported BaseListItemData from Storybook stories
Replace BaseListItemData with Item generic type
Diagram Walkthrough
File Walkthrough
Dropdown.types.ts
Fix callback parameter typespackages/core/src/components/DropdownNew/Dropdown.types.ts
BaseListItemDatawithItemin callback type definitionsonOptionRemove,valueRenderer,optionRenderer, andonOptionSelecttypesinterfaces
Dropdown.stories.tsx
Update Storybook type importspackages/core/src/components/DropdownNew/stories/Dropdown.stories.tsx
BaseListItemDatatypeDropdownOptiontypeBaseListItemData>[]withDropdownOption>[]