UNPKG

@vue-ioc/core

Version:

IoC and DI for Vue powered by InversifyJS and inspired by Angular @Module syntactic sugar.

13 lines (12 loc) 555 B
import { Container, interfaces } from 'inversify'; import { Binding } from './bindings/Binding'; import { ServiceIdentifier, Vue } from './types'; import ContainerOptions = interfaces.ContainerOptions; export interface IContainerOptions { vm: Vue; providers?: Binding[]; parent?: Container | null; initOnStart?: Array<ServiceIdentifier<any>>; containerOptions?: ContainerOptions; } export declare function createContainerWithBindings({ providers, parent, vm, initOnStart, containerOptions }: IContainerOptions): Container;