From 95f8bd7fffa8615ab8e54459fa049777e82a43e0 Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Tue, 6 Sep 2022 19:56:30 +0200 Subject: [PATCH] Added the default typescript configuration file --- tsconfig.json | 10 ++++++++++ util/envCheck.ts | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 tsconfig.json diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..3ffa57b --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,10 @@ +{ + "compilerOptions": { + "target": "es2016", + "module": "commonjs", + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "strict": true, + "skipLibCheck": true + } +} diff --git a/util/envCheck.ts b/util/envCheck.ts index 5557a9f..ac164ae 100644 --- a/util/envCheck.ts +++ b/util/envCheck.ts @@ -1,6 +1,6 @@ /** The predefined environment values */ const envValue: string[] = [ - "MONGOOSE_STRING" + "MONGOOSE_STRING", "API_PORT" ] /** Checks if the provided value is registered in process.env */