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';