Skip to content

Incorrect types in enhanceEndpoints with transformResponse #3901

@khmilevoi

Description

@khmilevoi

Codesandbox: https://codesandbox.io/s/redux-toolkit-rtk-query-forked-6plwhy?file=/src/services/pokemon.ts

Somebody had already fixed similar issues, but it was still a problem.

Actual behavior:
When you add transformResponse to enhanceEndpoints, ResultType doesn't change according to transformResponse ReturnType.

Expected behavior:
ResultType should be matched with transformReposponse ReturnType.

Version: 1.9.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions