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
IntersectionType
clause for more than 4 classes is not available in the npm version
#860
Comments
that's expected mapped-types/lib/intersection-type.helper.ts Lines 9 to 25 in 8c83b92
not sure if we should add more one level |
We could add another level, or you could just nest the |
indeed. That sounds better to me. Otherwise someone may request another level again and again |
Is there an existing issue for this?
Current behavior
Using
IntersectionType
on more than 4 classes produces a TypeScript error.Minimum reproduction code
n/a
Steps to reproduce
Expected behavior
TypeScript does not complain about more than four arguments.
Package version
1.1.0
Node.js version
18.7.0
In which operating systems have you tested?
Other
I suspect this is because the declaration file in the compiled library does not have the wildcard clause. I'm not sure if that is intended or if there is a workaround.
The text was updated successfully, but these errors were encountered: