1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | import { Type } from '../facade/type';
|
9 | import { GetterFn, MethodFn, SetterFn } from './types';
|
10 | export interface PlatformReflectionCapabilities {
|
11 | isReflectionEnabled(): boolean;
|
12 | factory(type: Type<any>): Function;
|
13 | hasLifecycleHook(type: any, lcProperty: string): boolean;
|
14 | parameters(type: Type<any>): any[][];
|
15 | annotations(type: Type<any>): any[];
|
16 | propMetadata(typeOrFunc: Type<any>): {
|
17 | [key: string]: any[];
|
18 | };
|
19 | getter(name: string): GetterFn;
|
20 | setter(name: string): SetterFn;
|
21 | method(name: string): MethodFn;
|
22 | importUri(type: Type<any>): string;
|
23 | resourceUri(type: Type<any>): string;
|
24 | resolveIdentifier(name: string, moduleUrl: string, members: string[] | null, runtime: any): any;
|
25 | resolveEnum(enumIdentifier: any, name: string): any;
|
26 | }
|