Skip to content
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

[Bug Report][3.7.4] VTabs typing slots #20720

Open
drraga opened this issue Nov 21, 2024 · 0 comments
Open

[Bug Report][3.7.4] VTabs typing slots #20720

drraga opened this issue Nov 21, 2024 · 0 comments
Labels
C: VTabs VTabs T: bug Functionality that does not work as intended/expected typescript

Comments

@drraga
Copy link

drraga commented Nov 21, 2024

Environment

Vuetify Version: 3.7.4
Vue Version: 3.5.12
Browsers: Firefox 133.0
OS: Mac OS 10.15

Steps to reproduce

Inside v-tabs place v-tab and v-tabs-window-item
pass item and tab via slots

Expected Behavior

slots #tab and #item should have ability to extend TabItem by data used for v-tabs items slot

Actual Behavior

doesn't extend TabItem type by data used in v-tabs as items slot

Error:
Property 'icon' does not exist on type 'TabItem'.
Property 'icon' does not exist on type 'string'.ts(2339)
any

same behaviour for all properties of item

Reproduction Link

https://play.vuetifyjs.com/#...

Other comments

attempt to solve issue by <template #item="{ item }: { item: UserView }"> aswell gives an error
Type 'VTabsSlot' is not assignable to type '{ item: UserView; }'.
Types of property 'item' are incompatible.
Type 'TabItem' is not assignable to type 'UserView'.
Type 'string' is not assignable to type 'UserView'.ts-plugin(2322)
const item: UserView

@KaelWD KaelWD added T: bug Functionality that does not work as intended/expected C: VTabs VTabs typescript labels Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: VTabs VTabs T: bug Functionality that does not work as intended/expected typescript
Projects
None yet
Development

No branches or pull requests

2 participants