Skip to content

Return types of query results #32

@TimoVaassen

Description

@TimoVaassen

It would be great if the return type of a generated useQuery were automatically exported, making it easier for me to use them in my own interfaces. Since the recent update you released, the return type of a query is, for example, Omit<useQueryResult<type, unknown>, "data"> & { data: TData }, which is fantastic because it allows us to override the return type. However, it now requires me to adjust all my code to accommodate the 'omit' variant, and 'UseQueryResult<type, unknown>' is no longer valid.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions