UNPKG

@drooms/ng-metadata

Version:

Angular 2 decorators and utils for Angular 1.x

26 lines (25 loc) 1.04 kB
import { Type } from '../../facade/type'; import { GetterFn, SetterFn, MethodFn } from './types'; export interface PlatformReflectionCapabilities { isReflectionEnabled(): boolean; factory(type: Type): Function; interfaces(type: Type): any[]; parameters(type: any): any[][]; rawParameters(typeOrFunc: Type): any[][]; registerParameters(parameters: any, type: Type): void; annotations(type: any): any[]; ownAnnotations(typeOrFunc: Type): any[]; registerAnnotations(annotations: any, typeOrFunc: Type): void; propMetadata(typeOrFunc: any): { [key: string]: any[]; }; ownPropMetadata(typeOrFunc: Type): { [key: string]: any[]; }; registerPropMetadata(propMetadata: any, typeOrFunc: Type): void; registerDowngradedNg2ComponentName(componentName: string, typeOrFunc: Type | Function): void; downgradedNg2ComponentName(typeOrFunc: Type | Function): string; getter(name: string): GetterFn; setter(name: string): SetterFn; method(name: string): MethodFn; }