Skip to content

migrate applyMiddleware test to typescript #3505

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged

Conversation

cellog
Copy link
Contributor

@cellog cellog commented Aug 15, 2019

This PR converts the applyMiddleware test to typescript.

In the interest of simplicity, there is one major compromise: the example based on thunk does not pull in all of the massive complexity of that type. Instead, it just does a double typecast to force the value we already know works. If this feels too brittle, it is not trivial, but totally doable to fix this.

@timdorr timdorr merged commit 9ab13e1 into reduxjs:ts-conversion Aug 16, 2019
@cellog cellog deleted the greg-3500-ts-applyMiddleware-test branch August 18, 2019 16:26
webMasterMrBin pushed a commit to webMasterMrBin/redux that referenced this pull request Aug 21, 2021
webMasterMrBin pushed a commit to webMasterMrBin/redux that referenced this pull request Aug 21, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants