Begin TS Migration

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface
2023-07-24 00:57:45 +01:00
parent d8cc7c04f5
commit 96f22efb58
4 changed files with 917 additions and 768 deletions

View File

@@ -1,8 +1,8 @@
const environment = process.env.NODE_ENV;
const environment: string = process.env.NODE_ENV || "Unknown";
const hideInProduction = ['info', 'dbug'];
const hideInProduction: string[] = ['info', 'dbug'];
async function out(msg, level = 'othr') {
async function out(msg: string, level = 'othr') {
if (environment === 'production' &&
hideInProduction.includes(level.toLowerCase())) {
return;