shadcn-vue icon indicating copy to clipboard operation
shadcn-vue copied to clipboard

fix(command): add generic

Open axuj opened this issue 1 year ago โ€ข 0 comments
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.

axuj avatar Jul 26 '24 05:07 axuj