UNPKG

1.37 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 { Type } from '../facade/type';
9import { PlatformReflectionCapabilities } from './platform_reflection_capabilities';
10import { GetterFn, MethodFn, SetterFn } from './types';
11/**
12 * Attention: This regex has to hold even if the code is minified!
13 */
14export declare const DELEGATE_CTOR: RegExp;
15export declare class ReflectionCapabilities implements PlatformReflectionCapabilities {
16 private _reflect;
17 constructor(reflect?: any);
18 isReflectionEnabled(): boolean;
19 factory<T>(t: Type<T>): (args: any[]) => T;
20 private _ownParameters;
21 parameters(type: Type<any>): any[][];
22 private _ownAnnotations;
23 annotations(typeOrFunc: Type<any>): any[];
24 private _ownPropMetadata;
25 propMetadata(typeOrFunc: any): {
26 [key: string]: any[];
27 };
28 hasLifecycleHook(type: any, lcProperty: string): boolean;
29 getter(name: string): GetterFn;
30 setter(name: string): SetterFn;
31 method(name: string): MethodFn;
32 importUri(type: any): string;
33 resourceUri(type: any): string;
34 resolveIdentifier(name: string, moduleUrl: string, members: string[], runtime: any): any;
35 resolveEnum(enumIdentifier: any, name: string): any;
36}