-
Notifications
You must be signed in to change notification settings - Fork 474
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 the typing of the Strategy class hierarchy. #554
Conversation
This looks good to me. I have a significant refactor of the type system in #548 which addresses some complex issues surrounding requiring a cert. I'm trying to get that landed before changes like this; though we'll certainly get this landed before we release v3. Feel free to have a look at it and offer feedback. |
Is this something that you wanted fixed in the 2.x branch, or just in |
@cjbarth I'm actually mostly interested by the 2.x branch for now, since that's what I'm using at the moment. I'll open a PR for that branch too 👍 |
@forty Would you like to resolve the merge conflicts so we can get this landed as part of the upcoming 3.x release? |
ec5577d
to
9835da1
Compare
Just rebased on master 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As we go along, I'm OK with adding types and making other minor changes in files we're touching to reduce the number of eslint
errors.
9835da1
to
87ae2cb
Compare
@forty Would you like to get this rebased and we'll get it landed? If you need help, please let me know. |
e37ee06
to
2e10f6d
Compare
The current expected ts error causes problems with some earlier version of TS. Also, it does not make any sense to have a method overide a method with a different signature, just because they have the same name.
2e10f6d
to
1911c8e
Compare
@cjbarth I just rebased on latest master 👍 |
If you want this on 2.x, please create a PR there. |
Description
The goal of this PR is to improve the typing of the Strategy class hierarchy.
The current expected ts error causes problems with some earlier version of TS.
See #540 which seems to be affected by this too.
Also, it does not make any sense to have a method override a method with a different signature, just because they have the same name.