<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [com-tools](./com-tools.md) &gt; [defineListenableProperties](./com-tools.definelistenableproperties.md)

## defineListenableProperties() function

接口1：defineListenableProperties(obj,propsOptions)

**Signature:**

```typescript
export function defineListenableProperties<T extends object>(obj:T,propsOptions:{[prop:string]:ListenablePropOpts<T>}):any;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

obj


</td><td>

T


</td><td>

: Object 必选；要在其上定义属性的对象。


</td></tr>
<tr><td>

propsOptions


</td><td>

{\[prop:string\]:[ListenablePropOpts](./com-tools.listenablepropopts.md)<!-- -->&lt;T&gt;}


</td><td>

: {<!-- -->propName:options<!-- -->} 必选；要定义的属性的配置对象；以该配置对象的属性属性为 要配置的属性的名字，以其值为 本配置的属性的 配置选项


</td></tr>
</tbody></table>
**Returns:**

any

obj : Object 被传递给函数的对象。

