Skip to content

Typescript types for JSON Fields are not generated when using prisma-client #2168

@genu

Description

@genu

Description and expected behavior
When using new prisma-client generator, typescript types are not generated. They are referenced in the generated models, but the types themselves are not created. Causing those fields to be any

Environment (please complete the following information):

  • ZenStack version: 2.16.0
  • Prisma version: 6.11.0
  • Database type: postgres

Additional Context
I'm thinking that maybe we need to call generateExtraTypes for the new generator as well?

this.transformPrismaTypes(sf, sfNew, delegateInfo);
this.generateExtraTypes(sfNew);
sfNew.formatText();

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