-
-
Notifications
You must be signed in to change notification settings - Fork 5k
Type declaration incomplete for Location.query #1932
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
Comments
@ktsn I couldn't find anything about |
@posva No, I don't. In any cases, the snippet looks invalid as a repro since |
It's weird I was getting the same output but I don't anymore 😆 |
@ktsn @posva I have made 2 updates to the OP (I apologize the original bug report I posted was not completely correct):
I think the line that would cause my problem is that the type declaration https://github.com/vuejs/vue-router/blob/dev/types/router.d.ts#L110 is You can verify that |
I have same issue, |
This can be closed now with #2050 merged. |
thanks, I didn't see I wasn't closed |
@posva @zigomir I am getting the same warning with params and named route.
Why? I mean why it works when compiled, but i get the warning message in my console? |
It hasn't been released yet, it will be soon 🙂 |
@posva Any updates? When will there be a new release? |
Getting this on vue-router 3.0.2... |
I'm wondering how to resolve this as well? Any news? |
Since
|
Has anyone figured this out? I keep getting in parent component:
in child component:
|
Version
2.7.0
Reproduction link
https://jsfiddle.net/50wL7mdz/82013/ (This doesn't actually work, but shows the code you'd need locally to repro the bug)
Steps to reproduce
Note that JSFiddle doesn't appear to give Typescript compiler errors, so the repro linked will have to be ported into a local Typescript Vue project.
In a Typescript Vue project:
What is expected?
This should compile without error
What is actually happening?
You get an error:
The text was updated successfully, but these errors were encountered: