Typescript clutter: Prisma + Postgresql + JSON fields is a mess

Guys all my code is cluttered with typecasting

Prisma.JsonValue
Prisma.JsonObject
Prisma.JsonNullValueInput

etc.

Same for data retrieval, always have to cast the value returned from the ORM to get rid of the json types.

How are you dealing with this mess? There must be a better way
Was this page helpful?