From f9b79dbe2c3fcfa5bdca1d1965fc20960e5063e3 Mon Sep 17 00:00:00 2001 From: pan261 Date: Thu, 2 Dec 2021 13:55:17 -0500 Subject: [PATCH] cleanup --- src/server.ts | 7 +++---- tsconfig.json | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/server.ts b/src/server.ts index cc423d9..90909b9 100644 --- a/src/server.ts +++ b/src/server.ts @@ -1,8 +1,7 @@ -import express from 'express'; +import * as express from 'express'; import * as config from './config'; -const ForgeAuthClient = require('forge-apis').AuthClientThreeLegged; /** * Kevin Pan | pan261@purdue.edu | Last Modified: 11/22/2021 * @@ -43,7 +42,7 @@ const createServer = () => { } // Endpoint to begin authentication process - app.get('/auth', function (req, res) { + app.get('/auth', function (req: any, res: any) { console.log( '\x1b[96mserver.js::createServer:', '\x1b[0m/auth endpoint called' @@ -84,7 +83,7 @@ const createServer = () => { }); // Endpoint for internal use, to get credentials from our auth server - app.get('/credentials', function (req, res) { + app.get('/credentials', function (req: any, res: any) { if (credentials) { console.log( '\x1b[96mserver.js::createServer:', diff --git a/tsconfig.json b/tsconfig.json index d1c4369..5377628 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -69,7 +69,7 @@ /* Interop Constraints */ // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */ // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */ - "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */ + "esModuleInterop": false, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */ // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */ "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */