-
-
Notifications
You must be signed in to change notification settings - Fork 506
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
Get type should be able to return never so it can be used in a conditional type #315
Comments
@asbjornh Thoughts on this? |
Yeah! The type A<T> = unknown extends Get<T, "items"> ? true : false; Explanation: If you flip it you get the question "is |
@joseDaKing Did the above resolve your issue? Can this be closed? |
It resolved the issue thanks |
Great! 😄 |
Get type should be able to return never so it can be used in a conditional type or a new generic type could be created.
The text was updated successfully, but these errors were encountered: