From: Eduardo San Martin Morote Date: Fri, 11 Sep 2020 10:00:59 +0000 (+0200) Subject: test(e2e): fix interface rename X-Git-Tag: v4.0.0-beta.10~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21808101c636aae07ab05c89541f1fbee54f6e8b;p=thirdparty%2Fvuejs%2Frouter.git test(e2e): fix interface rename --- diff --git a/e2e/scroll-behavior/index.ts b/e2e/scroll-behavior/index.ts index f976cd00..61391e62 100644 --- a/e2e/scroll-behavior/index.ts +++ b/e2e/scroll-behavior/index.ts @@ -1,4 +1,4 @@ -import { createRouter, createWebHistory, ScrollBehavior } from '../../src' +import { createRouter, createWebHistory, RouterScrollBehavior } from '../../src' import { RouteComponent } from '../../src/types' import { createApp, ref } from 'vue' import { scrollWaiter } from './scrollWaiter' @@ -21,7 +21,7 @@ const Bar: RouteComponent = { // - only available in html5 history mode // - defaults to no scroll behavior // - return false to prevent scroll -const scrollBehavior: ScrollBehavior = async function ( +const scrollBehavior: RouterScrollBehavior = async function ( to, from, savedPosition @@ -36,7 +36,7 @@ const scrollBehavior: ScrollBehavior = async function ( // savedPosition is only available for popstate navigations. return { ...savedPosition, behavior } } else { - let position: ReturnType + let position: ReturnType // scroll to anchor by returning the selector if (to.hash) {