[Bug Report][3.3.X][Types] Event-only components and ComponentCustomProps augmentation doesn't work properly since 3.3.0 #17545
Labels
T: bug
Functionality that does not work as intended/expected
typescript
upstream
Problem with a third party library that we may have to work around
Milestone
Environment
Vuetify Version: 3.3.2
Last working version: 3.2.5
Vue Version: 3.3.4
Browsers: Edge 114.0.1823.37
OS: Windows 10
Steps to reproduce
npm remove vuetify && npm i vuetify@3.2.5 && npm ci && npm run typecheck
to install 3.2.5 (the latest working version) and run type-checking against itnpm remove vuetify && npm i vuetify && npm ci && npm run typecheck
to reinstall and run type-checking against 3.3.2Expected Behavior
v-btn
,v-app-bar-nav-icon
andv-avatar
doesn't report any type error when being used only with the@click
prop. If you add any of the other valid props, the issue is gonefrontend/src/types/global/attributes.d.ts
ofComponentCustomProps
work for thedata-swiper-parallax
type error.Actual Behavior
v-btn
,v-app-bar-nav-icon
, orv-avatar
components with only an event prop (in this case@click
) gives a type error.frontend/src/types/global/attributes.d.ts
ofComponentCustomProps
doesn't work for thedata-swiper-parallax
type error. However, the types are correctly defined according to https://vuejs.org/api/utility-types.html#componentcustomprops and Detect unknown/undefined prop usage vuejs/language-tools#1077 (comment)Reproduction Link
https://github.com/jellyfin/jellyfin-vue
Other comments
I'm attaching the whole repo as a reproduction since I believe it's going to simplify debugging in this case by having the whole TypeScript and bundler configuration in place.
The text was updated successfully, but these errors were encountered: