From ade9525cf9b94de45b7c9eb95a07648773f696a1 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Mon, 18 Nov 2019 20:52:12 -0500 Subject: [PATCH] typings for route in Server.ts --- src/api/Server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/Server.ts b/src/api/Server.ts index 3c4d16b..7e53887 100644 --- a/src/api/Server.ts +++ b/src/api/Server.ts @@ -34,7 +34,7 @@ export default class Server { if (routeFile === 'index.js') return; try { // eslint-disable-next-line new-cap - const route = new (require(`${__dirname}/routes/${routeFile}`).default)(this); + const route: Route = new (require(`${__dirname}/routes/${routeFile}`).default)(this); if (route.conf.deprecated === true) { route.deprecated(); } else if (route.conf.maintenance === true) {