Skip to content

MSW - Handling Responses for data set to any #1942

@Ericlm

Description

@Ericlm

When using plugin-msw, if a type is any and is referenced by the parameter data of the handler, we lose all type-check about MSW requests.

I think that when the type of data is referencing any, it should be something like object | number | string | boolean instead. (so the type function is only used for the callback, and its MSW params).

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