Skip to content

Typescript issue along with Redux 4.0.5 #3742

Closed
@saikats5

Description

@saikats5

I am getting below errors after upgrading to redux 4.0.5

app/store/reducer.ts:58:7 - error TS2345: Argument of type 'AnyAction' is not assignable to parameter of type 'never'.

58 action
~~~~~~

app/store/reducer.ts:62:18 - error TS2345: Argument of type 'StateRoot' is not assignable to parameter of type 'CombinedState<{ [x: string]: unknown; }>'.
Type 'StateRoot' is not assignable to type '{ [x: string]: unknown; }'.
Index signature is missing in type 'StateRoot'.

62 return reducer(state, action)
~~~~~

Found 2 errors.

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