const Home = { template: `<div>Home</div>` }
const Foo = { template: `<div>Foo</div>` }
-const beforeRouteEnter = jest.fn<
- ReturnType<NavigationGuard>,
- Parameters<NavigationGuard>
->()
+const beforeRouteEnter =
+ jest.fn<ReturnType<NavigationGuard>, Parameters<NavigationGuard>>()
const named = {
default: jest.fn(),
other: jest.fn(),
/**
* Component to render a link that triggers a navigation on click.
*/
-export const RouterLink = (RouterLinkImpl as any) as {
+export const RouterLink = RouterLinkImpl as {
new (): {
$props: AllowedComponentProps &
ComponentCustomProps &
/**
* Component to display the current route the user is at.
*/
-export const RouterView = (RouterViewImpl as any) as {
+export const RouterView = RouterViewImpl as {
new (): {
$props: AllowedComponentProps &
ComponentCustomProps &
): Promise<any> {
let guards: Lazy<any>[]
- const [
- leavingRecords,
- updatingRecords,
- enteringRecords,
- ] = extractChangingRecords(to, from)
+ const [leavingRecords, updatingRecords, enteringRecords] =
+ extractChangingRecords(to, from)
// all components here have been resolved once because we are leaving
guards = extractComponentsGuards(