-
-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using v-slot, types are any of returned variables from child component #106
Comments
|
Thank you for your reply. a) No difference after exporting both class components with I narrowed down the issue caused by the child class component ( In |
@hellokvn Sorry about that, I wasn't very clear - I was curious what the slot types looked like with the regular Vue 3 Options API (with just From this example, it looks like using the Vue 3 Options API even without using vue-facing-decorator shows the slot types as Definitely still interested to know whether you see the same behavior in your context, though. |
@rdhelms Got it and can confirm, I see the same behaviour as you do. That's unfortunate, but seems we can't change it for now. I'll stay with my workaround emitting my data to the parental component. Thank you for your investigation. Appreciate! |
We can't fully support type checking about v-f-d components as vue setup or |
Keep this open. |
Simple Example Repo: https://github.com/hellokvn/vue-facing-decorator-slot-typebug
In the provided example repository, I've created a parent and a child component using both the vue-facing-decorator and Vue's Composition API (setup). In the child component, two variables with specific types are returned. When utilizing Vue's Composition API, the types of the returned variables are accurately maintained. However, when using the vue-facing-decorator, the types of these variables turns to any.
Using vue-facing-decorator:
Not using vue-facing-decorator:
The text was updated successfully, but these errors were encountered: