type-tls
Version:
type-tls 封装了与类型相关的工具,比如:获取数据的类型 或 类型名字、判断数据的类型 等
54 lines (26 loc) • 692 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [type-tls](./type-tls.md) > [isAsyncGeneratorFunction](./type-tls.isasyncgeneratorfunction.md)
## isAsyncGeneratorFunction() function
判断函数是否是异步生成器函数
**Signature:**
```typescript
export declare function isAsyncGeneratorFunction(fun: Function): boolean;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
fun
</td><td>
Function
</td><td>
被判断的函数
</td></tr>
</tbody></table>
**Returns:**
boolean