UNPKG

750 BTypeScriptView Raw
1/**
2 * Root Container
3 * @see /dev-docs/IoC 容器、依赖注入与服务说明.md
4 */
5import 'reflect-metadata';
6import { Container, interfaces } from 'inversify';
7export declare const container: Container;
8interface IBabelPropertyDescriptor extends PropertyDescriptor {
9 initializer(): any;
10}
11export declare const lazyInject: (serviceIdentifier: interfaces.ServiceIdentifier<any>) => (this: any, proto: any, key: string, descriptor?: IBabelPropertyDescriptor | undefined) => void;
12export declare const lazyMultiInject: (serviceIdentifier: interfaces.ServiceIdentifier<any>) => (this: any, proto: any, key: string, descriptor?: IBabelPropertyDescriptor | undefined) => void;
13export declare function createWorldContainer(): Container;
14export {};