Skip to content

actions don't get inferred when the type's fields are all optional #1423

Description

@lourenci

Hi, thanks for the library.

Probably, some mistake from my side. But, I don't get the action inferred when all the type's fields are optional. Shouldn't toolkit infer the action type by the generic of PayloadAction?

ok:
image

with error:
image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationImprovements or additions to documentationTypeScriptIssues related to TypeScript.bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions