Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* #248 Add union overload to ThunkDispatch See discussion in #248 and microsoft/TypeScript#14107. Without this explicit overload, TypeScript is unable to figure out that the function can be called with an argument of type `T|ThunkAction<...>`. * Merge ThunkDispatch union overload with renamed type parameters Co-Authored-By: Tim Dorr <[email protected]>
- Loading branch information
237f6bb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The declaration still now work:
I think it's better to define ThunkDispatch as: