UNPKG

tsreflect-ioc

Version:

Inversion of control and Dependency injection framework for typescript based on the tsreflect-compiler package.

20 lines (19 loc) 644 B
/// <reference path="_references.d.ts" /> import tsreflect = require('tsreflect'); export declare module ioc { interface IReflectorConfig { sourceFiles: string[]; searchForDefinitionFilesIn?: string; } class Reflector { private symbols; private ctx; public logger: any; constructor(); public initSymbols(config: IReflectorConfig): void; public getClassByName(className: string): tsreflect.Symbol; public classes(): tsreflect.Symbol[]; public interfaces(): tsreflect.Symbol[]; public modules(): tsreflect.Symbol[]; } }