feat: share decorators container

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2019-09-27 18:39:40 +08:00
parent 8584709828
commit 7f21fa67ee
2 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,5 @@
import "reflect-metadata";
import { initContainer } from './decorators'
import { interfaces, Container } from 'inversify';
import { fluentProvide } from 'inversify-binding-decorators';
@ -11,6 +12,7 @@ const provideSingleton = (identifier: interfaces.ServiceIdentifier<any>) => {
};
const DefaultContainer = new Container();
initContainer(DefaultContainer);
export * from 'inversify'
export * from './decorators'