Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Updated TypeScript definitions and added tests#25

Closed
arusanov wants to merge 1 commit intodevelopit:masterfrom
arusanov:typescript-defs
Closed

Updated TypeScript definitions and added tests#25
arusanov wants to merge 1 commit intodevelopit:masterfrom
arusanov:typescript-defs

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