Skip to content

Commit 9742eef

Browse files
authored
docs: fix vue-router lifecycle hooks type
1 parent eaaa1d1 commit 9742eef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -213,19 +213,19 @@ declare module 'vue/types/vue' {
213213
beforeRouteEnter?(
214214
to: Route,
215215
from: Route,
216-
next: (to?: RawLocation | false | ((vm: V) => any) | void) => void
216+
next: (to?: RawLocation | false | ((vm: Vue) => any) | void) => void
217217
): void
218218

219219
beforeRouteLeave?(
220220
to: Route,
221221
from: Route,
222-
next: (to?: RawLocation | false | ((vm: V) => any) | void) => void
222+
next: (to?: RawLocation | false | ((vm: Vue) => any) | void) => void
223223
): void
224224

225225
beforeRouteUpdate?(
226226
to: Route,
227227
from: Route,
228-
next: (to?: RawLocation | false | ((vm: V) => any) | void) => void
228+
next: (to?: RawLocation | false | ((vm: Vue) => any) | void) => void
229229
): void
230230
}
231231
}

0 commit comments

Comments
 (0)