UNPKG

injection-js

Version:

Dependency Injection library for JavaScript and TypeScript

27 lines (26 loc) 999 B
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { Type } from '../facade/type'; import { GetterFn, MethodFn, SetterFn } from './types'; export interface PlatformReflectionCapabilities { isReflectionEnabled(): boolean; factory(type: Type<any>): Function; hasLifecycleHook(type: any, lcProperty: string): boolean; parameters(type: Type<any>): any[][]; annotations(type: Type<any>): any[]; propMetadata(typeOrFunc: Type<any>): { [key: string]: any[]; }; getter(name: string): GetterFn; setter(name: string): SetterFn; method(name: string): MethodFn; importUri(type: Type<any>): string; resourceUri(type: Type<any>): string; resolveIdentifier(name: string, moduleUrl: string, members: string[] | null, runtime: any): any; resolveEnum(enumIdentifier: any, name: string): any; }