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

Lines changed: 3 additions & 3 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy