-
Notifications
You must be signed in to change notification settings - Fork 30.5k
react-redux currently relies on a TS bug (Microsoft/TypeScript#30634) to sucessfully typecheck #34335
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
Conversation
… to sucessfully typecheck, this fixes that
@weswigham Thank you for submitting this PR! 🔔 @tkqubo @kenzierocks @clayne11 @tansongyang @NicholasBoll @mDibyo @Kallikrein @val1984 @jrakotoharisoa @apapirovski @surgeboris @soerenbf - please review this PR in the next few days. Be sure to explicitly select If no reviewer appears after a week, a DefinitelyTyped maintainer will review the PR instead. |
Since CI is green, I'm just going to merge this, as this shouldn't break anyone AFAIK - the constraint actually meant approximately nothing in current TS (maybe any TS?) since it was circular, so it was effectively unconstrained already. |
I just published |
Fixing microsoft/TypeScript#30634 will make this constraint fail to check for most users - this type seems to have been copied from (to?) `react-redux`, which has taken in a similar change on DT: DefinitelyTyped/DefinitelyTyped#34335 DefinitelyTyped/DefinitelyTyped#34339
Fixing microsoft/TypeScript#30634 will make this constraint fail to check for most users - this type seems to have been copied from (to?) `react-redux`, which has taken in a similar change on DT: DefinitelyTyped/DefinitelyTyped#34335 DefinitelyTyped/DefinitelyTyped#34339
… to sucessfully typecheck, this fixes that (DefinitelyTyped#34335)
Fixing microsoft/TypeScript#30634 will make this constraint fail to check for most users - this type seems to have been copied from (to?) `react-redux`, which has taken in a similar change on DT: DefinitelyTyped/DefinitelyTyped#34335 DefinitelyTyped/DefinitelyTyped#34339
This fixes that. The constraint on
Shared
's second type parameter's constraint seems to be completely unneeded, so I just.... removed it.