Skip to content

Type of generic function as unknown when using tsx component #3309

Closed
@s-montigny-desautels

Description

@s-montigny-desautels

Vue version

3.3.4

Description

This issue appears when importing a .tsx component in a .vue component. If the props contain a function with a generic argument, the argument is of type unknown.

Link to minimal reproduction

https://github.com/s-montigny-desautels/vue3.3-issues

Steps to reproduce

$ pnpm install

Look for the error in file BugTSXFunctionUnknown.vue

What is expected?

The type of the function to respect the generic

What is actually happening?

The type of the function argument is of type unknown

Any additional comments?

This issue is only present in a .vue file. When using .tsx file, everything work as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood reproduction ✨This issue provides a good reproduction, we will be able to investigate it first

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions