Skip to content

useMution return type not working with typescript (5.2.2)  #282

@Falc0njsx

Description

@Falc0njsx

I am using vue-query and trying to create a hook to make a normal mutation but the return type of useMutation is not correct like the previous versions of typescript

(alias) useMutation<ICreatePasswordlessUser, unknown, ICreateUser, unknown>(mutationKey: MutationKey, mutationFn?: MutationFunction<ICreateUser, ICreateUser> | undefined, options?: Omit<...> | undefined): any (+3 overloads)

its returning : any (+3 overloads)

typescript : 5.2.2
vue-query : 1.26.0

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