[Bug]: AccordionRoot TS type problems with defineComponent
usage
#885
Labels
bug
Something isn't working
defineComponent
usage
#885
Environment
Link to minimal reproduction
https://stackblitz.com/edit/vitejs-vite-z3u3bm?file=src%2Fcomponents%2FAccordionGlitch.vue,src%2Fcomponents%2FAccordionNoGlitch.vue,package.json&terminal=dev
Steps to reproduce
1, Open repro link, wait for it to initialize
2, Open additional terminal and run
npm run type:check
Describe the bug
AccordionGlitch
component is authored viadefineComponent
and includesAccordionRoot
incomponents
. Just this triggers a long TS type error which did not happen with radix-vue 1.4.x. (the AccordionRoot component itself works just fine, the only problem is the TS type error)Using a script setup authoring (
AccordionNoGlitch
) the TS type error doesn't occur, everything works as expected.Expected behavior
No TS type error when AccordionRoot is used with
defineComponent
components
options,Context & Screenshots (if applicable)
No response
The text was updated successfully, but these errors were encountered: