We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
4.1.5
github.com
setup () { const route = useRoute() const id: string = route.params.id }
got a type error
TS2322: Type 'string | string[]' is not assignable to type 'string'. Type 'string[]' is not assignable to type 'string'.
type error
export a useParams method or add generic for useRoute
The text was updated successfully, but these errors were encountered:
sorry I just find a same issue: #1160
so, any plan for this?
Sorry, something went wrong.
Duplicate of #1160
Please, search existing issues and pull requests before opening issues, it saves maintainers a lot of time 🙏
No branches or pull requests
Version
4.1.5
Reproduction link
github.com
Steps to reproduce
What is expected?
got a type error
What is actually happening?
type error
export a useParams method or add generic for useRoute
The text was updated successfully, but these errors were encountered: