@vue-ioc/core
Version:
IoC and DI for Vue powered by InversifyJS and inspired by Angular @Module syntactic sugar.
9 lines (8 loc) • 351 B
TypeScript
import { Container } from 'inversify';
import { IBaseBinding } from './Binding';
import { Newable } from '../types';
export interface IClassBinding extends IBaseBinding {
useClass: Newable<any>;
noSingleton?: boolean;
}
export declare const bindClass: (container: Container, { provide, useClass, noSingleton }: IClassBinding) => void;