提交 1ccb30b9 编写于 作者: Q qiang

fix: AsyncApiOptions

上级 580f105a
......@@ -52,7 +52,7 @@ type TaskApiLike = ApiLike
type AsyncApiLike = (args: any) => Promise<unknown> | void
type AsyncApiOptions<T extends ApiLike> = Parameters<T>[0]
type AsyncApiOptions<T extends ApiLike> = Required<Parameters<T>>[0]
type AsyncApiRes<T extends AsyncMethodOptionLike> = Omit<
Parameters<Exclude<T['success'], undefined>>[0],
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册