Skip to content
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

Consider exporting the full type of the RouterLink and RouterView component for TypeScript #225

Closed
mehcode opened this issue May 8, 2020 · 1 comment

Comments

@mehcode
Copy link

mehcode commented May 8, 2020

As it stands now, attempting to use RouterLink or RouterView in TSX fails with:

TS2604: JSX element type 'RouterLink' does not have any construct or call signatures.

This is because the type is erased here:

https://github.com/vuejs/vue-router-next/blob/096d86498e954345c6bd4d8e82fe54c37d3f869b/src/RouterLink.ts#L140

Is there something blocking the full type being exported?

@vue-bot
Copy link
Collaborator

vue-bot commented May 8, 2020

Hello, thank you for taking time filling this issue!

However, we kindly ask you to use our Issue Helper when creating new issues, in order to ensure every issue provides the necessary information for us to investigate. This explains why your issue has been automatically closed by me (your robot friend!).

I hope to see your helper-created issue very soon!

@vue-bot vue-bot closed this as completed May 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants