From: Eduardo San Martin Morote Date: Fri, 11 Sep 2020 13:23:31 +0000 (+0200) Subject: test: fix typings X-Git-Tag: v4.0.0-beta.10~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=adde4c25f9f33e3e83b00257e612e85deacf195d;p=thirdparty%2Fvuejs%2Frouter.git test: fix typings --- diff --git a/__tests__/router.spec.ts b/__tests__/router.spec.ts index e45dca12..5e74d6a8 100644 --- a/__tests__/router.spec.ts +++ b/__tests__/router.spec.ts @@ -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()