fix: Update types for TypeScript nullability support in examples

This commit is contained in:
Miško Hevery
2017-03-24 09:57:05 -07:00
committed by Hans
parent 14669f20bf
commit 6f5fccfeb7
6 changed files with 10 additions and 9 deletions

View File

@ -8,7 +8,7 @@
import {DebugElement} from '@angular/core';
let debugElement: DebugElement;
let debugElement: DebugElement = undefined !;
let predicate: any;
// #docregion scope_all

View File

@ -171,7 +171,7 @@ export function main() {
declarations: [App, ParentCmp, ChildDirective],
});
let cmp: ComponentFixture<App>;
let cmp: ComponentFixture<App> = undefined !;
expect(() => cmp = TestBed.createComponent(App)).not.toThrow();
expect(cmp.debugElement.children[0].children[0].injector.get(ChildDirective).logs).toEqual([