Skip to content

Typing redux-thunk with redux v4 #2748

@nenadalm

Description

@nenadalm

Hi. Previously Dispatch had generic parameter for state, but currently it has only parameter for action. redux-thunk relies on the state parameter to type the action properly: https://github.com/gaearon/redux-thunk/blob/4f96ec0239453623adde857b7e7ad8c4f2897bf1/index.d.ts#L4

Maybe Dispatch should have 2 parameters? One for state and another for action?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions