-
-
Notifications
You must be signed in to change notification settings - Fork 15.2k
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
Improve typings for Middleware #2530
Conversation
Can I get some eyes on this to confirm this fixes the issue? Thanks! |
This doesn't fix the issue for me. I get additional error messages:
|
This will break any existing usage of We should rather add a new type without touching existing ones. |
I could do it the other way and introduce a new type SpecificMiddleware:
But if we would update the typescript dependency from 1.8.0 to 2.4.2, we could make it even more elegant with only one type:
@timdorr Does anything stand against? |
@davidka I don't think we should force everybody to use the latest typescript version. Some people might run into problems with unresolved conflicts in other dependencies or have other restrictions in place. |
d59de69
to
d749ec1
Compare
@tbo yeah that make sense. |
@timdorr Could we merge that? |
I retested this and it still doesn't fix the issue for me. Maybe it is limited to my specific setup, so I would suggest, that somebody else should test this as well. |
Superceded by #2563 |
This PR fixes Issue #2481