Skip to content

Using v-slot, types are any of returned variables from child component #106

Open
@hellokvn

Description

@hellokvn

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:

class

Not using vue-facing-decorator:

setup

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions