10000 react-redux currently relies on a TS bug (Microsoft/TypeScript#30634) to sucessfully typecheck by weswigham · Pull Request #34335 · DefinitelyTyped/DefinitelyTyped · GitHub
[go: up one dir, main page]

Skip to content

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

Merged
merged 1 commit into from
Mar 29, 2019

Conversation

weswigham
Copy link
Contributor
@weswigham weswigham commented Mar 29, 2019

This fixes that. The constraint on Shared's second type parameter's constraint seems to be completely unneeded, so I just.... removed it.

@typescript-bot typescript-bot added Popular package This PR affects a popular package (as counted by NPM download counts). Awaiting reviewer feedback labels Mar 29, 2019
@typescript-bot
Copy link
Contributor
typescript-bot commented Mar 29, 2019

@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 Approve or Request Changes in the GitHub UI so I know what's going on.

If no reviewer appears after a week, a DefinitelyTyped maintainer will review the PR instead.

@weswigham
Copy link
Contributor Author

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.

@weswigham weswigham merged commit 44a802c into master Mar 29, 2019
@weswigham weswigham deleted the fix-react-redux-on-future-ts branch March 29, 2019 22:24
@typescript-bot
Copy link
Contributor

I just published @types/react-redux@7.0.6 to npm.

weswigham added a commit that referenced this pull request Mar 30, 2019
weswigham added a commit to weswigham/react-dnd that referenced this pull request Mar 30, 2019
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
weswigham added a commit that referenced this pull request Mar 30, 2019
darthtrevino pushed a commit to react-dnd/react-dnd that referenced this pull request Mar 31, 2019
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
alesn pushed a commit to alesn/DefinitelyTyped that referenced this pull request Apr 23, 2019
alesn pushed a commit to alesn/DefinitelyTyped that referenced this pull request Apr 23, 2019
darthtrevino pushed a commit to react-dnd/react-dnd that referenced this pull request Feb 3, 2022
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Popular package This PR affects a popular package (as counted by NPM download counts).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0