<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [worker-tls](./worker-tls.md) &gt; [AsyncCMD](./worker-tls.asynccmd.md)

## AsyncCMD type

转为异步的命令

**Signature:**

```typescript
export type AsyncCMD<Value> = Value extends AnyFunction ? AsyncFun<Value> : (() => Promise<Awaited<Value>>);
```
**References:** [AsyncFun](./worker-tls.asyncfun.md)

## Remarks

函数的入参不变，返回参数都变为解决值为对应类型的 Promise 其它非函数的值都变为返回解决值为对应类型的 Promise 的函数

