kkorz

Results 3 issues of kkorz

Here is the code example ![image](https://user-images.githubusercontent.com/88693424/185579173-b045db1a-d6a2-4f4c-a887-59583c7f80b1.png)

Currently it needs to be used in the ts project,thanks

1. 限制传入的类型必须是Promise 2. 使用infer推导Promise参数类型 3. 如果推导类型仍为Promise 4. 循环调用 5. 否则直接返回推导类型 ```ts type MyAwaited = T extends Promise ? X extends Promise ? MyAwaited : X : never; ```

answer
en
189