Type definition for 'header' slot missing in TabPanel component #1943
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
I'm submitting a ...
CodeSandbox Case (Bug Reports)
Provided sandbox template is not working, since the issue refers to the compile procedure
Current behavior
Linting a PrimeVue application containing TabPanel component header templates such as
using vue-tsc causes TS2339 errors:
error TS2339: Property 'header' does not exist on type '{ default: unknown; }'
The reason for this is a missing type definition for the header slot within the interface TabPanelSlots located in
TabPanel.d.ts
.Expected behavior
The code above as equivalent to the header template example in the PrimeVue documentation at https://www.primefaces.org/primevue/showcase/#/tabview and should pass the type checking.
Minimal reproduction of the problem with instructions
npm install vue-tsc
in your projectlint
script to thescripts
section of yourpackage.json
and set its value tovue-tsc --noEmit
npm run lint
What is the motivation / use case for changing the behavior?
The type definitions are incomplete and do not reflect the expectations derived from the documentation.
Please tell us about your environment:
WSL2, VS Code, Vite@2.7.10,vue-tsc@0.30.2
Vue version: 3.2.26
PrimeVue version: 3.10.0
Browser: not affected since this is a CLI-only issue
The text was updated successfully, but these errors were encountered: