kkorz
Results
3
issues of
kkorz
Here is the code example 
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