Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[@tanstack/vue-query] Generated hooks have wrong typings #1056

Closed
juni0r opened this issue Feb 25, 2024 · 2 comments
Closed

[@tanstack/vue-query] Generated hooks have wrong typings #1056

juni0r opened this issue Feb 25, 2024 · 2 comments
Milestone

Comments

@juni0r
Copy link

juni0r commented Feb 25, 2024

The generated hooks for @tanstack/[email protected] have some wrong typings.

This is probably related to #945?

Environment:

  • ZenStack version: 1.9.0
  • Prisma version: 5.10.2
  • Database type: Postgresql

schema.zmodel

datasource db {
  provider = "postgresql"
  url = env("DATABASE_URL")
}

plugin prisma {
  provider = '@core/prisma'
  format = true
}

plugin hooks {
  provider = '@zenstackhq/tanstack-query'
  target = 'vue'
  version = 'v5'
  output = 'hooks'
}

generator client {
  provider = "prisma-client-js"
}

Screenshots
Screenshot 2024-02-25 at 21 56 23
Screenshot 2024-02-25 at 21 53 19
Screenshot 2024-02-25 at 21 49 00

@juni0r juni0r changed the title [@tanstack/vue-query] Generated hooks for have wrong typings [@tanstack/vue-query] Generated hooks have wrong typings Feb 25, 2024
@ymc9
Copy link
Member

ymc9 commented Feb 26, 2024

Hi @juni0r , it's already fixed with #1009 and will be included in the upcoming 1.10.0 release.

@ymc9 ymc9 added this to the 1.10.0 milestone Feb 26, 2024
@ymc9
Copy link
Member

ymc9 commented Mar 2, 2024

Fixed in 1.10.0

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

No branches or pull requests

2 participants