1 个仓库
Retrieving all registered instances for a single token as a collection to support multiple providers.
Distinguishing note: None of the candidates address DI-specific multi-implementation resolution (as opposed to multi-source packages or DNS targets).
Explore 1 awesome GitHub repository matching software engineering & architecture · Multi-Implementation Resolution. Refine with filters or upvote what's useful.
tsyringe 是一个 TypeScript 依赖注入容器和控制反转框架。它通过使用装饰器和元数据管理依赖项和对象生命周期,将类实现与对象创建解耦。 该框架具有层级容器系统,其中子容器可以维护独立的注册作用域,并回退到父容器进行依赖解析。它提供了一个通过单例和瞬态实例化规则控制对象寿命的提供程序系统。 该系统支持递归构造函数注入,并使用代理处理循环依赖。它包括用于基于令牌的注册表映射、多实现解析以及为实现清理接口的对象提供自动资源处置的功能。
Allows retrieving all instances registered under a single token as an array.