<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [com-tools](./com-tools.md) &gt; [getMemberWithAsyncDefault](./com-tools.getmemberwithasyncdefault.md)

## getMemberWithAsyncDefault() function

获取成员值

**Signature:**

```typescript
export declare function getMemberWithAsyncDefault(target: any, propPath: ObjectKey[], defaultValue?: GetDefaultValue | 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>

propPath


</td><td>

[ObjectKey](./com-tools.objectkey.md)<!-- -->\[\]


</td><td>


</td></tr>
<tr><td>

defaultValue


</td><td>

[GetDefaultValue](./com-tools.getdefaultvalue.md) \| any


</td><td>

_(Optional)_


</td></tr>
</tbody></table>
**Returns:**

any

如果 defaultValue 返回的是 Promise ，则该函数也返回 Promise，其它

