some my solutions for type-challenges
Last active
May 18, 2022 00:53
-
-
Save enpitsuLin/30539766563938d7739ea94bb4b2cd03 to your computer and use it in GitHub Desktop.
Author
Author
//00189-easy-awaited
type MyAwaited<X> = X extends Promise<infer T> ? T extends Promise<infer P> ? MyAwaited<T> : T : never
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
面向case穷举,好像也没看到更优雅的解法😂