-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9861c55
commit cba9650
Showing
7 changed files
with
431 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
dist | ||
*.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import { Route, VueRouter, NavigationGuard } from './router' | ||
|
||
/** | ||
* Returns the current route location. Equivalent to using `$route` inside templates. | ||
*/ | ||
export declare function useRoute(): Route | ||
/** | ||
* Returns the router instance. Equivalent to using `$router` inside templates. | ||
*/ | ||
export declare function useRouter(): VueRouter | ||
/** | ||
* Add a navigation guard that triggers whenever the current location is about to be updated. Similar to beforeRouteUpdate but can be used in any component. The guard is removed when the component is unmounted. | ||
* | ||
* @param updateGuard NavigationGuard | ||
*/ | ||
export declare function onBeforeRouteUpdate(updateGuard: NavigationGuard): void | ||
/** | ||
* Add a navigation guard that triggers whenever the component for the current location is about to be left. Similar to beforeRouteLeave but can be used in any component. The guard is removed when the component is unmounted. | ||
* | ||
* @param leaveGuard NavigationGuard | ||
*/ | ||
export declare function onBeforeRouteLeave(leaveGuard: NavigationGuard): void | ||
|
||
export { | ||
type RouterMode, | ||
type RouteMeta, | ||
type RawLocation, | ||
type RedirectOption, | ||
type RouterOptions, | ||
type RouteConfig, | ||
type RouteRecord, | ||
type RouteRecordPublic, | ||
type Location, | ||
type Route, | ||
type NavigationGuard, | ||
type NavigationGuardNext, | ||
type NavigationFailure, | ||
NavigationFailureType, | ||
isNavigationFailure, | ||
START_LOCATION, | ||
type RouterViewProps, | ||
RouterView, | ||
type RouterLinkProps, | ||
type RouterLinkSlotArgument, | ||
RouterLink, | ||
VueRouter as default, | ||
} from './router' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.