build(bazel): Turning on strictPropertyInitialization for Angular. (#24572)
All errors for existing fields have been detected and suppressed with a `!` assertion. Issue/24571 is tracking proper clean up of those instances. One-line change required in ivy/compilation.ts, because it appears that the new syntax causes tsickle emitted node to no longer track their original sourceFiles. PR Close #24572
This commit is contained in:
@ -6,6 +6,7 @@
|
||||
"module": "es2015",
|
||||
"moduleResolution": "node",
|
||||
"strictNullChecks": true,
|
||||
"strictPropertyInitialization": true,
|
||||
"outDir": "../../../dist/all/@angular/service-worker/cli-custom",
|
||||
"noImplicitAny": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
|
@ -23,7 +23,8 @@ export class SwPush {
|
||||
readonly messages: Observable<object>;
|
||||
readonly subscription: Observable<PushSubscription|null>;
|
||||
|
||||
private pushManager: Observable<PushManager>;
|
||||
// TODO(issue/24571): remove '!'.
|
||||
private pushManager !: Observable<PushManager>;
|
||||
private subscriptionChanges: Subject<PushSubscription|null> =
|
||||
new Subject<PushSubscription|null>();
|
||||
|
||||
|
@ -95,7 +95,8 @@ export class MockServerState {
|
||||
private requests: Request[] = [];
|
||||
private gate: Promise<void> = Promise.resolve();
|
||||
private resolve: Function|null = null;
|
||||
private resolveNextRequest: Function;
|
||||
// TODO(issue/24571): remove '!'.
|
||||
private resolveNextRequest !: Function;
|
||||
online = true;
|
||||
nextRequest: Promise<Request>;
|
||||
|
||||
|
@ -79,7 +79,8 @@ export class SwTestHarness implements ServiceWorkerGlobalScope, Adapter, Context
|
||||
private skippedWaiting = true;
|
||||
|
||||
private selfMessageQueue: any[] = [];
|
||||
unregistered: boolean;
|
||||
// TODO(issue/24571): remove '!'.
|
||||
unregistered !: boolean;
|
||||
readonly notifications: {title: string, options: Object}[] = [];
|
||||
readonly registration: ServiceWorkerRegistration = {
|
||||
active: {
|
||||
|
@ -6,6 +6,7 @@
|
||||
"module": "es2015",
|
||||
"moduleResolution": "node",
|
||||
"strictNullChecks": true,
|
||||
"strictPropertyInitialization": true,
|
||||
"outDir": "../../../dist/all/@angular/service-worker/worker-es2017",
|
||||
"noImplicitAny": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
|
Reference in New Issue
Block a user