-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
NoInfer
interfere with Exclude
in Exclude<NoInfer<I>, undefined>`
#60594
Comments
This isn't a supported way to use |
What if you have a function whose return type involves |
I agree with @jcalz and |
I noticed that |
It shuldn't break it. Whatever is wrapped with function inferFromTypes(source: Type, target: Type): void {
if (!couldContainTypeVariables(target) || isNoInferType(target)) {
return;
} |
π Search Terms
π Version & Regression Information
This is not a regression, and doesn't work with 5.7 :
β― Playground Link
https://www.typescriptlang.org/play/?#code/C4TwDgpgBAogHgYwDYFcAmECqA7DAzAS2wjQB4AlAPigF5ZFUNSA5AewEls8IAnCygDRQUuCIWJpKAbgBQMpBGBRsARgBc9ZOiyjxJUthQBbAEa8oAH2G6iJanRH5baKVDduA9B6isA1vMVlACYNeC0MHCcJFmMzHktrKLtaRLFnV3coL2VWJQgGbTQApQBndU1GHSSyEuAeIgBzBMc0iXtUvRdMrO8-YqgSkIrtSNb9AGU6xuabNpSWzoz3bOxcqHzwkn60crDK0c7SABEAQ2BoKwXndquJJcyVtY3KooUlE54eXYKI2f1DUy8ADaAF0ZtUbn8uo88j8tm8fCYAFbfTYHZykADeAF9wWNJPMofdlr1-AjDEgkKj9lCDChKXjOpDqvdsn0gA
π» Code
π Actual behavior
undefined
is not consistantly excluded.π Expected behavior
undefined
should be consistantly excluded.Additional information about the issue
No response
The text was updated successfully, but these errors were encountered: