From c5ff294b052088cc997ed67541569c015f03e809 Mon Sep 17 00:00:00 2001 From: Luke Policinski Date: Sat, 6 Oct 2018 07:36:22 -0500 Subject: [PATCH] updating route middleware template --- src/stubs/routeMiddleware.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/stubs/routeMiddleware.ts b/src/stubs/routeMiddleware.ts index 0858292..8cbc748 100644 --- a/src/stubs/routeMiddleware.ts +++ b/src/stubs/routeMiddleware.ts @@ -1,10 +1,10 @@ +import { Route, Location } from "vue-router"; import { injectable, inject } from "inversify"; import RouteMiddlewareInterface from "varie/lib/routing/RouteMiddlewareInterface"; @injectable() export default class temp implements RouteMiddlewareInterface { - handler(to, from, next) { - // your custom logic here - return next(); + handler(to: Route, from: Route, next: (route?: Location) => void) { + next(); } }