UNPKG

1.11 kBTypeScriptView 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 { GetterFn, MethodFn, SetterFn } from './private_import_core';
9import { StaticReflector } from './static_reflector';
10export declare class StaticAndDynamicReflectionCapabilities {
11 private staticDelegate;
12 static install(staticDelegate: StaticReflector): void;
13 private dynamicDelegate;
14 constructor(staticDelegate: StaticReflector);
15 isReflectionEnabled(): boolean;
16 factory(type: any): Function;
17 hasLifecycleHook(type: any, lcProperty: string): boolean;
18 parameters(type: any): any[][];
19 annotations(type: any): any[];
20 propMetadata(typeOrFunc: any): {
21 [key: string]: any[];
22 };
23 getter(name: string): GetterFn;
24 setter(name: string): SetterFn;
25 method(name: string): MethodFn;
26 importUri(type: any): string;
27 resolveIdentifier(name: string, moduleUrl: string, runtime: any): any;
28 resolveEnum(enumIdentifier: any, name: string): any;
29}