]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
test: fix typings
authorEduardo San Martin Morote <posva13@gmail.com>
Fri, 11 Sep 2020 13:23:31 +0000 (15:23 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Fri, 11 Sep 2020 13:23:31 +0000 (15:23 +0200)
__tests__/router.spec.ts

index e45dca1297dc739c46b5a66cc139dbac05e092e3..5e74d6a82e77588b68b6931361a8272f74c00232 100644 (file)
@@ -389,7 +389,7 @@ describe('Router', () => {
 
   describe('navigation cancelled', () => {
     async function checkNavigationCancelledOnPush(
-      target?: RouteLocationRaw | false | ((vm: any) => any)
+      target?: RouteLocationRaw | false
     ) {
       const [p1, r1] = fakePromise()
       const history = createMemoryHistory()
@@ -436,7 +436,7 @@ describe('Router', () => {
     })
 
     async function checkNavigationCancelledOnPopstate(
-      target?: RouteLocationRaw | false | ((vm: any) => void)
+      target?: RouteLocationRaw | false
     ) {
       const [p1, r1] = fakePromise()
       const [p2, r2] = fakePromise()