Skip to content
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

Updated TypeScript definitions and added tests #25

Closed
wants to merge 1 commit into from

Conversation

arusanov
Copy link
Contributor

@arusanov arusanov commented Dec 7, 2017

From https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-redux
Almost 1-1 (only tests changed a little). Should be pretty easy to port newer version of typings.

Known Issue: (which is true for this also)
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react-redux/index.d.ts#L14-L19

There is a known issue in TypeScript, which doesn't allow decorators to change the signature of the classes
they are decorating. Due to this, if you are using @connect() decorator in your code,
you will see a bunch of errors from TypeScript. The current workaround is to use connect() as a function call on
a separate line instead of as a decorator. Discussed in this github issue:
DefinitelyTyped/DefinitelyTyped#20796

@arusanov arusanov closed this Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant