StaticClassSansProvider
配置 Injector 以返回 useClass 的令牌实例。这是 StaticClassProvider 装饰器的基接口。
Configures the Injector to return an instance of useClass for a token. Base for StaticClassProvider decorator.
interface StaticClassSansProvider {
useClass: Type<any>
deps: any[]
}
属性
| 属性 | 说明 |
|---|---|
useClass: Type<any> | 供 An optional class to instantiate for the |
deps: any[] | 由注入器解析的 A list of |