TypeScript: changeTheme is not declared #4118
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
If your project uses TypeScript, and you're following the guide on how to switch themes, then TypeScript will complain that:
The function exists in JavaScript, it's just not declared properly for TypeScript.
Another bug references this issue, however it's probably not getting the attention due to the bug report's title remaining as the template default.
Reproducer
https://codesandbox.io/s/objective-matsumoto-znzm79?file=/src/App.vue
PrimeVue version
3.29.2
Vue version
3.x
Language
TypeScript
Build / Runtime
Nuxt
Browser(s)
No response
Steps to reproduce the behavior
lang="ts"
attribute so that it is using TypeScriptExpected behavior
changeTheme
should be present on the exported module signature for PrimeVue, alongsideconfig
.The text was updated successfully, but these errors were encountered: