填写这份《一分钟调查》,帮我们(开发组)做得更好!去填写Home

StaticProvider

描述如何将 Injector 配置为静态的(即不需要反射)。静态提供者为各种类型的依赖项提供令牌给注入器。

Describes how an Injector should be configured as static (that is, without reflection). A static provider provides tokens to an injector for various types of dependencies.

      
      type StaticProvider = ValueProvider | ExistingProvider | StaticClassProvider | ConstructorProvider | FactoryProvider | any[];
    

参见