-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
PR #2467 breaks TS interface inheritance #2483
Comments
Looks like the reason for the change was there was an issue w/ export type Reducer<S> = (state: S, action: Action) => S |
What version of TS are you using? |
@timdorr 2.4.1. Sorry, I had some information incorrect. I updated the original issue. |
Gah, sorry. I actually got it to work with AnyAction. I broke something while trying to debug the original issue I was having, which was related to the TypeScript version. Either of these work as well though: export type Reducer<S> = (state: S, action: Action) => S export type Reducer<S, A extends Action = Action> = (state: S, action: Action) => S |
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
What is the expected behavior?
No errors.
Which versions of Redux, and which browser and OS are affected by this issue? Did this work in previous versions of Redux?
master - error
3.7.1 - works
This was caused by PR #2467
The text was updated successfully, but these errors were encountered: