shadcn-vue
shadcn-vue copied to clipboard
fix(command): add generic
trafficstars
๐ Linked issue
#327
โ Type of change
- [ ] ๐ Documentation (updates to the documentation, readme or JSdoc annotations)
- [x] ๐ Bug fix (a non-breaking change that fixes an issue)
- [ ] ๐ Enhancement (improving an existing functionality like performance)
- [ ] โจ New feature (a non-breaking change that adds functionality)
- [ ] ๐งน Chore (updates to the build process or auxiliary tools and libraries)
- [ ] โ ๏ธ Breaking change (fix or feature that would cause existing functionality to change)
๐ Description
Generic component secondary packaging requires passing the corresponding constraints. Otherwise, complex types such as filter-function will not recognize the type.
The following filter-function in several files has type errors before modification
apps/www/src/examples/dashboard/components/TeamSwitcher.vue apps/www/src/examples/tasks/components/DataTableFacetedFilter.vue apps/www/src/lib/registry/default/example/CardChat.vue apps/www/src/lib/registry/new-york/example/CardChat.vue
๐ Checklist
- [x] I have linked an issue or discussion.
- [ ] I have updated the documentation accordingly.