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(); } }