You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My understanding is that the generator is supposed to go into the generated .d.ts file and find the field and replace the field's Prisma.JsonValue type with what I've provided and added to global names (in this case let's say it's CustomJsonType)
but seems like in other cases its missing the default types and I think its because its already overloaded the type (instead of proposal its given Extension.GetResults)
I know it works by using prisma's abstract syntax tree so instead of replacing the type it seems like its leaving the comment there that informs what should be swapped out for the Prisma.JsonValue
is this a bug/ collision with extensions or am I misunderstanding whats going on here?
Steps to Reproduce
setup a simple prisma extension and try to use json prisma-json-types-generator
Expected Behavior
No response
The text was updated successfully, but these errors were encountered:
Prerequisites
Versions
"prisma": "^4.12.0",
"prisma-json-types-generator": "3.0.4"
A minimal reproducible example
none
Description
My understanding is that the generator is supposed to go into the generated .d.ts file and find the field and replace the field's Prisma.JsonValue type with what I've provided and added to global names (in this case let's say it's CustomJsonType)
and it works in some cases for example:
but seems like in other cases its missing the default types and I think its because its already overloaded the type (instead of proposal its given
Extension.GetResults
)I know it works by using prisma's abstract syntax tree so instead of replacing the type it seems like its leaving the comment there that informs what should be swapped out for the Prisma.JsonValue
is this a bug/ collision with extensions or am I misunderstanding whats going on here?
Steps to Reproduce
setup a simple prisma extension and try to use json prisma-json-types-generator
Expected Behavior
No response
The text was updated successfully, but these errors were encountered: