Skip to content

Argument of type 'unknown' is not assignable to parameter of type 'Action<string>'. #3895

@andreisocaciu

Description

@andreisocaciu

When trying to match an action in a middleware, I get this Typescript error: Argument of type 'unknown' is not assignable to parameter of type 'Action<string>'. typescript(2345)

Version: @redux/[email protected]

Codesandbox link: https://codesandbox.io/p/sandbox/kind-fog-7nxp6k?file=%2Fshared%2Fcounter.middleware.ts%3A5%2C31-5%2C37

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