UNPKG

754 BTypeScriptView Raw
1/**
2 * @license
3 * Copyright Google Inc. All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8import { CompileReflector } from './compile_reflector';
9export declare enum LifecycleHooks {
10 OnInit = 0,
11 OnDestroy = 1,
12 DoCheck = 2,
13 OnChanges = 3,
14 AfterContentInit = 4,
15 AfterContentChecked = 5,
16 AfterViewInit = 6,
17 AfterViewChecked = 7
18}
19export declare const LIFECYCLE_HOOKS_VALUES: LifecycleHooks[];
20export declare function hasLifecycleHook(reflector: CompileReflector, hook: LifecycleHooks, token: any): boolean;
21export declare function getAllLifecycleHooks(reflector: CompileReflector, token: any): LifecycleHooks[];