2015-08-20 17:28:25 -04:00
|
|
|
import {StringMap} from 'angular2/src/core/facade/collection';
|
|
|
|
import {global} from 'angular2/src/core/facade/lang';
|
2015-05-22 16:14:59 -04:00
|
|
|
|
2015-06-04 21:52:11 -04:00
|
|
|
// This is here only so that after TS transpilation the file is not empty.
|
|
|
|
// TODO(rado): find a better way to fix this, or remove if likely culprit
|
|
|
|
// https://github.com/systemjs/systemjs/issues/487 gets closed.
|
|
|
|
var __ignore_me = global;
|
2015-05-22 16:14:59 -04:00
|
|
|
/**
|
2015-08-28 00:19:56 -04:00
|
|
|
* Defines lifecycle method {@link metadata/LifeCycleEvent#OnChanges `LifeCycleEvent.OnChanges`}
|
2015-08-03 02:40:18 -04:00
|
|
|
* called after all of component's bound properties are updated.
|
2015-05-22 16:14:59 -04:00
|
|
|
*/
|
2015-08-28 00:19:56 -04:00
|
|
|
export interface OnChanges { onChanges(changes: StringMap<string, any>): void; }
|
2015-05-27 11:07:37 -04:00
|
|
|
|
|
|
|
/**
|
2015-08-28 00:19:56 -04:00
|
|
|
* Defines lifecycle method {@link metadata/LifeCycleEvent#OnInit `LifeCycleEvent.OnInit`}
|
|
|
|
* called when a directive is being checked the first time.
|
2015-05-27 11:07:37 -04:00
|
|
|
*/
|
2015-08-28 00:19:56 -04:00
|
|
|
export interface OnInit { onInit(): void; }
|
2015-05-27 11:07:37 -04:00
|
|
|
|
2015-05-27 13:14:37 -04:00
|
|
|
/**
|
2015-08-28 00:19:56 -04:00
|
|
|
* Defines lifecycle method {@link metadata/LifeCycleEvent#DoCheck `LifeCycleEvent.DoCheck`}
|
2015-08-03 02:40:18 -04:00
|
|
|
* called when a directive is being checked.
|
2015-05-27 13:14:37 -04:00
|
|
|
*/
|
2015-08-28 00:19:56 -04:00
|
|
|
export interface DoCheck { doCheck(): boolean; }
|
2015-05-27 13:14:37 -04:00
|
|
|
|
|
|
|
/**
|
2015-08-28 00:19:56 -04:00
|
|
|
* Defines lifecycle method {@link metadata/LifeCycleEvent#OnDestroy `LifeCycleEvent.OnDestroy`}
|
|
|
|
* called when a directive is being destroyed.
|
2015-05-27 13:14:37 -04:00
|
|
|
*/
|
2015-08-28 00:19:56 -04:00
|
|
|
export interface OnDestroy { onDestroy(): void; }
|
2015-05-27 13:14:37 -04:00
|
|
|
|
2015-05-27 11:07:37 -04:00
|
|
|
/**
|
2015-08-03 02:40:18 -04:00
|
|
|
* Defines lifecycle method
|
2015-08-28 00:19:56 -04:00
|
|
|
* {@link metadata/LifeCycleEvent#AfterContentChecked `LifeCycleEvent.afterContentChecked`}
|
|
|
|
* called when the bindings of all its view children have been changed.
|
2015-05-27 11:07:37 -04:00
|
|
|
*/
|
2015-08-28 00:19:56 -04:00
|
|
|
export interface AfterContentChecked { afterContentChecked(): void; }
|