Skip to content

Commit 6931f06

Browse files
committed
update types
1 parent d53ec3c commit 6931f06

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

flow/declarations.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

6465
declare type RawLocation = string | Location

types/router.d.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff 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

8490
export interface Route {

0 commit comments

Comments
 (0)