feat: enable stricter typescript compiler options

This commit is contained in:
2024-01-05 11:55:15 +01:00
parent 7e779b738e
commit 33181941ba
58 changed files with 185 additions and 138 deletions

10
packages/api-plugin/environment.d.ts vendored Normal file
View File

@@ -0,0 +1,10 @@
declare global {
namespace NodeJS {
interface ProcessEnv {
NODE_ENV?: string;
PORT?: string;
}
}
}
export {};

View File

@@ -175,13 +175,11 @@ export abstract class Plugin {
// tslint:disable-next-line:no-floating-promises
Logger.error(`${bind} requires elevated privileges`);
process.exit(1);
break;
}
case 'EADDRINUSE': {
// tslint:disable-next-line:no-floating-promises
Logger.error(`${bind} is already in use`);
process.exit(1);
break;
}
default: {
throw error;