填寫這份《一分鐘調查》,幫我們(開發組)做得更好!去填寫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[];
    

參見