From 4efc32dabfb5f1b096751887de849fc81d314dba Mon Sep 17 00:00:00 2001 From: Martin Probst Date: Wed, 6 Dec 2017 14:35:54 +0100 Subject: [PATCH] fix(compiler-cli): disable checkTypes in emit. (#20828) Closure Compiler by default will report diagnostics from type checks in any JavaScript code, including code emitted by the Angular compiler. Disabling `checkTypes` substantially reduces warning spam for users, and allows them to run with stricter compiler flags (e.g. treating actual diagnostics from user code as errors). Closure Compiler will still type check the code and use types (where found and correct) for optimizations. PR Close #20828 --- .../compiler-cli/src/transformers/node_emitter_transform.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/compiler-cli/src/transformers/node_emitter_transform.ts b/packages/compiler-cli/src/transformers/node_emitter_transform.ts index 0153e90848..466664042e 100644 --- a/packages/compiler-cli/src/transformers/node_emitter_transform.ts +++ b/packages/compiler-cli/src/transformers/node_emitter_transform.ts @@ -13,9 +13,9 @@ import {TypeScriptNodeEmitter} from './node_emitter'; import {GENERATED_FILES} from './util'; const PREAMBLE = `/** -* @fileoverview This file is generated by the Angular template compiler. +* @fileoverview This file was generated by the Angular template compiler. * Do not edit. -* @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride} +* @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes} * tslint:disable */`;