-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
type-challenges-solutions/en/medium-return-type #277
Comments
Why you fallback to like this type MyReturnType<T> = T extends (...args: any[]) => infer R ? R : never; |
@zhaoyao91 there is no reason, it just a preferable choice for me. |
A couple of questions:
|
It's not in this context. As I said, it was just a choice, not based on anything. Feel free to return
|
Get Return Type
This project is aimed at helping you better understand how the type system works, writing your own utilities, or just having fun with the challenges.
https://ghaiklor.github.io/type-challenges-solutions/en/medium-return-type.html
The text was updated successfully, but these errors were encountered: