-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Creating a type declaration for next
#2758
Labels
Comments
This will definitely be exposed, not sure about the wording yet |
There was #2497, the wording isn't good though |
This was referenced May 14, 2019
@posva |
MartinYounghoonKim
added a commit
to snack-news/Snack-admin
that referenced
this issue
Sep 2, 2019
relative issue: vuejs/vue-router#2758
Fwiw, if anyone wants a workaround that doesn't involve creating their own copy of the
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What problem does this feature solve?
At the moment there is a type definition for
NavigationGuard
inrouter.d.ts
. This works nicely. Within that, thenext
argument is a function that accepts a union of different types as argument.I think it'd be neat to easily use this just like the
Route
interface declaration in, for example, a components navigation guard.What does the proposed API look like?
Export a type definition maybe called
NavigationGuardCallback
inrouter.d.ts
.The text was updated successfully, but these errors were encountered: