@vue-ioc/core
Version:
IoC and DI for Vue powered by InversifyJS and inspired by Angular @Module syntactic sugar.
12 lines (11 loc) • 432 B
TypeScript
import { Binding } from '../bindings/Binding';
import { Container } from 'inversify';
import { ServiceIdentifier } from '../types';
export declare function Module(options: IModuleOptions): (targetConstructor: any) => any;
export declare type Imports = any[];
export interface IModuleOptions {
imports?: Imports;
providers?: Binding[];
parentContainer?: Container;
start?: Array<ServiceIdentifier<any>>;
}