Open shiny opened 11 months ago
I have also encountered this issue. Although it does not affect the runtime, it would be more user-friendly to include various Vue events in the component's type definition, such as onClick and onChage
@benjamincanac @danielroe 🙏🙏🙏
@mcpanl Unlike other UI frameworks, there is no "events" listed at docs https://ui.nuxt.com/components/button
same problem
Version
@nuxt/ui: v2.8.1 nuxt: v3.7.3
Reproduction Link
https://stackblitz.com/edit/nuxt-ui-c8yl8v?file=app.vue
Steps to reproduce
in Visual Studio Code,
onClick
will cause a TS Error #2322What is Expected?
Should not produce a typing error.
What is actually happening?
Actually this example works great in runtime, which follows the vue3 documentation https://vuejs.org/guide/extras/render-function.html#v-on —— what i do is just replace
button
toUButton
. The typing error should not appear.