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
IfAny circular constraint in TS 5.4+ #846
Comments
Yeah, it does seem like we can just do: -type IsAny<T> = 0 extends 1 & T ? true : false;
+type IsAny<T> = 0 extends 1 & NoInfer<T> ? true : false; @tommy-mitchell Thoughts? |
Also needs tests that catches the error, so yet another one that highlights #837 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Line 3 reports
Type parameter 'T' has a circular constraint. (2313)
since TS 5.4 which can be fixed withNoInfer
Playground
Is this something that can be fixed by IfAny internally to avoid having to change 100s of places where it reports this error since TS 5.4 in our codebase?
Upvote & Fund
The text was updated successfully, but these errors were encountered: