typings for route in Server.ts
parent
0150affaf5
commit
ade9525cf9
|
@ -34,7 +34,7 @@ export default class Server {
|
||||||
if (routeFile === 'index.js') return;
|
if (routeFile === 'index.js') return;
|
||||||
try {
|
try {
|
||||||
// eslint-disable-next-line new-cap
|
// 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) {
|
if (route.conf.deprecated === true) {
|
||||||
route.deprecated();
|
route.deprecated();
|
||||||
} else if (route.conf.maintenance === true) {
|
} else if (route.conf.maintenance === true) {
|
||||||
|
|
Loading…
Reference in New Issue