Skip to content

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

Closed
@Strate

Description

@Strate

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions