This repository was archived by the owner on Nov 22, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 15 files changed +40
-16
lines changed
express-engine-ivy-prerender Expand file tree Collapse file tree 15 files changed +40
-16
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,6 @@ import {enableProdMode} from '@angular/core';
1212import { platformBrowser } from '@angular/platform-browser' ;
1313import { HelloWorldModuleNgFactory } from './app.ngfactory' ;
1414
15- window [ 'doBootstrap' ] = function ( ) {
15+ ( window as any ) [ 'doBootstrap' ] = function ( ) {
1616 platformBrowser ( ) . bootstrapModuleFactory ( HelloWorldModuleNgFactory ) ;
1717} ;
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import { APP_BASE_HREF } from '@angular/common';
99import { existsSync } from 'fs' ;
1010
1111// The Express app is exported so that it can be used by serverless Functions.
12- export function app ( ) {
12+ export function app ( ) : express . Express {
1313 const server = express ( ) ;
1414 const distFolder = join ( process . cwd ( ) , 'dist/express-engine-ivy-prerender/browser' ) ;
1515 const indexHtml = existsSync ( join ( distFolder , 'src/home.html' ) ) ? 'src/home.html' : 'index.html' ;
Original file line number Diff line number Diff line change 33 "compilerOptions" : {
44 "baseUrl" : " ./" ,
55 "outDir" : " ./dist/out-tsc" ,
6+ "forceConsistentCasingInFileNames" : true ,
7+ "strict" : true ,
8+ "noImplicitReturns" : true ,
9+ "noFallthroughCasesInSwitch" : true ,
610 "sourceMap" : true ,
711 "declaration" : false ,
812 "downlevelIteration" : true ,
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import { APP_BASE_HREF } from '@angular/common';
99import { existsSync } from 'fs' ;
1010
1111// The Express app is exported so that it can be used by serverless Functions.
12- export function app ( ) {
12+ export function app ( ) : express . Express {
1313 const server = express ( ) ;
1414 const distFolder = join ( process . cwd ( ) , 'dist/express-engine-ivy/browser' ) ;
1515 const indexHtml = existsSync ( join ( distFolder , 'index.original.html' ) ) ? 'index.original.html' : 'index' ;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ if (environment.production) {
88 enableProdMode ( ) ;
99}
1010
11- window [ 'doBootstrap' ] = ( ) => {
11+ ( window as any ) [ 'doBootstrap' ] = ( ) => {
1212 platformBrowserDynamic ( ) . bootstrapModule ( AppModule )
1313 . catch ( err => console . error ( err ) ) ;
1414} ;
Original file line number Diff line number Diff line change 33 "compilerOptions" : {
44 "baseUrl" : " ./" ,
55 "outDir" : " ./dist/out-tsc" ,
6+ "forceConsistentCasingInFileNames" : true ,
7+ "strict" : true ,
8+ "noImplicitReturns" : true ,
9+ "noFallthroughCasesInSwitch" : true ,
610 "sourceMap" : true ,
711 "declaration" : false ,
812 "downlevelIteration" : true ,
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import { APP_BASE_HREF } from '@angular/common';
99import { existsSync } from 'fs' ;
1010
1111// The Express app is exported so that it can be used by serverless Functions.
12- export function app ( ) {
12+ export function app ( ) : express . Express {
1313 const server = express ( ) ;
1414 const distFolder = join ( process . cwd ( ) , 'dist/express-engine-ve/browser' ) ;
1515 const indexHtml = existsSync ( join ( distFolder , 'index.original.html' ) ) ? 'index.original.html' : 'index' ;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ if (environment.production) {
88 enableProdMode ( ) ;
99}
1010
11- window [ 'doBootstrap' ] = ( ) => {
11+ ( window as any ) [ 'doBootstrap' ] = ( ) => {
1212 platformBrowserDynamic ( ) . bootstrapModule ( AppModule )
1313 . catch ( err => console . error ( err ) ) ;
1414} ;
Original file line number Diff line number Diff line change 33 "compilerOptions" : {
44 "baseUrl" : " ./" ,
55 "outDir" : " ./dist/out-tsc" ,
6+ "forceConsistentCasingInFileNames" : true ,
7+ "strict" : true ,
8+ "noImplicitReturns" : true ,
9+ "noFallthroughCasesInSwitch" : true ,
610 "sourceMap" : true ,
711 "declaration" : false ,
812 "downlevelIteration" : true ,
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ if (environment.production) {
88 enableProdMode ( ) ;
99}
1010
11- window [ 'doBootstrap' ] = ( ) => {
11+ ( window as any ) [ 'doBootstrap' ] = ( ) => {
1212 platformBrowserDynamic ( ) . bootstrapModule ( AppModule )
1313 . catch ( err => console . error ( err ) ) ;
1414} ;
You can’t perform that action at this time.
0 commit comments