Skip to content

Commit

Permalink
fix(express-engine): make server.ts compliant with typedef tslint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-agius4 committed Jun 10, 2020
1 parent d7cdcb2 commit 4bb3837
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -9,7 +9,7 @@ import { APP_BASE_HREF } from '@angular/common';
import { existsSync } from 'fs';

// The Express app is exported so that it can be used by serverless Functions.
export function app() {
export function app(): void {
const server = express();
const distFolder = join(process.cwd(), '<%= browserDistDirectory %>');
const indexHtml = existsSync(join(distFolder, 'index.original.html')) ? 'index.original.html' : 'index';
Expand Down Expand Up @@ -37,7 +37,7 @@ export function app() {
return server;
}

function run() {
function run(): void {
const port = process.env.PORT || <%= serverPort %>;

// Start up the Node server
Expand Down

0 comments on commit 4bb3837

Please sign in to comment.