File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ declare type Location = {
5959 query ?: Dictionary < string > ;
6060 params ?: Dictionary < string > ;
6161 append ? : boolean ;
62+ replace ? : boolean ;
6263}
6364
6465declare type RawLocation = string | Location
Original file line number Diff line number Diff line change @@ -27,8 +27,12 @@ declare class VueRouter {
2727 go ( n : number ) : void ;
2828 back ( ) : void ;
2929 forward ( ) : void ;
30- getMatchedComponentes ( ) : Component ;
31- resolve ( to : RawLocation , current ?: Route , append ?: boolean ) : { href : string } ;
30+ getMatchedComponentes ( to ?: RawLocation ) : Component [ ] ;
31+ resolve ( to : RawLocation , current ?: Route , append ?: boolean ) : {
32+ normalizedTo : Location ;
33+ resolved : Route ;
34+ href : string ;
35+ } ;
3236
3337 static install : PluginFunction < never > ;
3438}
@@ -79,6 +83,8 @@ export interface Location {
7983 hash ?: string ;
8084 query ?: Dictionary < string > ;
8185 params ?: Dictionary < string > ;
86+ append ?: boolean ;
87+ replace ?: boolean ;
8288}
8389
8490export interface Route {
You can’t perform that action at this time.
0 commit comments