Skip to content

Typescript: compose function should be able to accept single rest argument #1935

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

Closed
Strate opened this issue Sep 7, 2016 · 1 comment
Closed

Comments

@Strate
Copy link

Strate commented Sep 7, 2016

As for now, it is not possible to call Resux.compose like this:

declare const middlewares: Redux.Middleware[];
declare const enhancers: Redux.GenericStoreEnhancer[];
const enhancer = Redux.compose(Redux.applyMiddleware(...middlewares), ...enhancers);

This is broken since #1868 was merged.
I think we should have an overloading for compose, which covers this case.
/cc @aikoven

@aikoven
Copy link
Collaborator

aikoven commented Sep 7, 2016

Thanks, pushed a fix: #1936

@timdorr timdorr changed the title Typescript: compose function shoudl be able to accept single rest argument Typescript: compose function should be able to accept single rest argument Sep 7, 2016
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

No branches or pull requests

2 participants