feat(core/linker): add SimpleChanges type to lifecycle_hooks to simplify OnChanges signature

Closes #8557
This commit is contained in:
Ward Bell
2016-05-09 15:45:04 -07:00
committed by Misko Hevery
parent 6f3a6a55a0
commit 0a872ffd38
10 changed files with 27 additions and 14 deletions

View File

@ -28,7 +28,7 @@ import {
AfterContentChecked,
AfterViewInit,
AfterViewChecked,
SimpleChange,
SimpleChanges,
provide
} from '@angular/core';
@ -141,7 +141,7 @@ class ComponentWithoutModuleId {
class ComponentWithEverything implements OnChanges,
OnInit, DoCheck, OnDestroy, AfterContentInit, AfterContentChecked, AfterViewInit,
AfterViewChecked {
ngOnChanges(changes: {[key: string]: SimpleChange}): void {}
ngOnChanges(changes: SimpleChanges): void {}
ngOnInit(): void {}
ngDoCheck(): void {}
ngOnDestroy(): void {}