plugin-tls
Version:
plugin-tls 是插件系统相应的工具,可快速地让任何模块具备插件机制
67 lines (31 loc) • 907 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [plugin-tls](./plugin-tls.md) > [mergeProperties](./plugin-tls.mergeproperties.md)
## mergeProperties() function
合并属性 该方法会将 props 深度合并到 target 中, - 所有 纯对象 的属性值都会被作为 props 进行深度合并 - 对于不是纯对象的属性,会将其视为属性值设置到到目标中对应的属性上
**Signature:**
```typescript
export declare function mergeProperties(target: any, props: any): any;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
target
</td><td>
any
</td><td>
</td></tr>
<tr><td>
props
</td><td>
any
</td><td>
</td></tr>
</tbody></table>
**Returns:**
any