From 0ebf8462a431a4bcefdf36bceeca0faf027f486b Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Fri, 26 Jun 2020 10:45:56 +0200 Subject: [PATCH] fix(express-engine): fix return type for app method --- .../install/files/__serverFileName@stripTsExtension__.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/express-engine/schematics/install/files/__serverFileName@stripTsExtension__.ts b/modules/express-engine/schematics/install/files/__serverFileName@stripTsExtension__.ts index 4c55cdb26..da7f64e51 100644 --- a/modules/express-engine/schematics/install/files/__serverFileName@stripTsExtension__.ts +++ b/modules/express-engine/schematics/install/files/__serverFileName@stripTsExtension__.ts @@ -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(): void { +export function app(): express.Express { const server = express(); const distFolder = join(process.cwd(), '<%= browserDistDirectory %>'); const indexHtml = existsSync(join(distFolder, 'index.original.html')) ? 'index.original.html' : 'index';