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

Hovering over types (intellisense) shows confusing GetResult #20320

Closed
millsp opened this issue Jul 20, 2023 · 0 comments · Fixed by #20319
Closed

Hovering over types (intellisense) shows confusing GetResult #20320

millsp opened this issue Jul 20, 2023 · 0 comments · Fixed by #20319
Assignees
Labels
bug/2-confirmed Bug has been reproduced and confirmed. kind/bug A reported bug. team/client Issue for team Client. tech/typescript Issue for tech TypeScript. topic: client types Types in Prisma Client topic: clientExtensions
Milestone

Comments

@millsp
Copy link
Member

millsp commented Jul 20, 2023

Bug description

When you hover over the result type of a result (for instance a findMany), when it is stored into a variable, the intellisense popup shows a confusing GetResult wrapping the result types.

How to reproduce

  1. Create a project and a schema
  2. Generate the client
  3. Create an index.ts
  4. Write a const data = await prisma.<model>.findMany query
  5. Hover over data
  6. See the strange GetResult included in the types

Screenshot from 2023-07-20 13-16-02

Expected behavior

GetResult should not be present. Either the selected fields or the model type.

Prisma information

n/a

Environment & setup

n/a

Prisma Version

5.0.0
@millsp millsp added bug/2-confirmed Bug has been reproduced and confirmed. kind/bug A reported bug. topic: client types Types in Prisma Client tech/typescript Issue for tech TypeScript. team/client Issue for team Client. topic: clientExtensions labels Jul 20, 2023
@millsp millsp added this to the 5.1.0 milestone Jul 20, 2023
@millsp millsp self-assigned this Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/2-confirmed Bug has been reproduced and confirmed. kind/bug A reported bug. team/client Issue for team Client. tech/typescript Issue for tech TypeScript. topic: client types Types in Prisma Client topic: clientExtensions
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant