(
instance: T,
properties: PropertyDependency[],
)
| 835 | } |
| 836 | |
| 837 | public applyProperties<T = any>( |
| 838 | instance: T, |
| 839 | properties: PropertyDependency[], |
| 840 | ): void { |
| 841 | if (!isObject(instance)) { |
| 842 | return undefined; |
| 843 | } |
| 844 | iterate(properties) |
| 845 | .filter(item => !isNil(item.instance)) |
| 846 | .forEach(item => (instance[item.key] = item.instance)); |
| 847 | } |
| 848 | |
| 849 | public async instantiateClass<T = any>( |
| 850 | instances: any[], |
no test coverage detected