chubbyjs-container:PSR-11容器实现

时间:2021-02-16 04:41:59
【文件属性】:
文件名称:chubbyjs-container:PSR-11容器实现
文件大小:14KB
文件格式:ZIP
更新时间:2021-02-16 04:41:59
psr-11 container servicefactory chubbyjs-container TypeScript 胖乎乎的容器 描述 PSR-11容器实现。 要求 节点:10 :^ 1.0.0 安装 通过作为 。 npm i @chubbyjs/chubbyjs-container@1.0 用法 有两种PSR-11实现: Container原型(每个get将返回一个新实例)和共享服务 MinimalContainer共享服务 最小的容器/容器 工厂工厂 import FactoryInterface from '@chubbyjs/chubbyjs-container/dist/FactoryInterface' ; import Logger from 'some-logger/dist/Logger' ; import MinimalContainer from '@chubbyjs/chubbyjs-container/dist/MinimalContainer' ; import MyS
【文件预览】:
chubbyjs-container-master
----.gitignore(80B)
----package.json(1KB)
----sonar-project.properties(253B)
----stryker.conf.json(237B)
----src()
--------Exceptions()
--------MinimalContainer.ts(2KB)
--------Parameter.ts(189B)
--------Container.ts(3KB)
--------FactoryInterface.ts(225B)
--------Factory.ts(363B)
--------ContainerInterface.ts(385B)
----LICENSE(1KB)
----tsconfig.json(170B)
----.github()
--------workflows()
----README.md(8KB)
----tests()
--------Factory.test.ts(959B)
--------Exceptions()
--------Container.test.ts(8KB)
--------MinimalContainer.test.ts(4KB)
--------Parameter.test.ts(421B)

网友评论