<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [worker-tls](./worker-tls.md) &gt; [ToAsyncMethods](./worker-tls.toasyncmethods.md)

## ToAsyncMethods type

将所有方法都 转为 异步方法

**Signature:**

```typescript
export type ToAsyncMethods<Methods extends INamedFunctionMap> = {
    [N in keyof Methods]: AsyncFun<Methods[N]>;
};
```
**References:** [INamedFunctionMap](./worker-tls.inamedfunctionmap.md)<!-- -->, [AsyncFun](./worker-tls.asyncfun.md)

## Remarks

所有的方法的入参不变，返回参数都变为解决值为对应类型的 Promise

