Fix
All checks were successful
Lint / lint (push) Successful in 11s

This commit is contained in:
Julien Valverdé
2024-08-20 20:55:14 +02:00
parent e8769d046d
commit 2cd09fe2f7

View File

@@ -9,5 +9,5 @@ import type { PrismaJson } from "../Types"
*
* This is needed because Prisma's `JsonValue` is poorly implemented and does not work well with some types, such as readonly arrays.
*/
export const encodedAsPrismaJsonValue = <A, R>(schema: Schema.Schema<A, JsonValue, R>) =>
schema as Schema.Schema<A, PrismaJson.JsonValue, R>
export const encodedAsPrismaJsonValue = <A, E extends JsonValue, R>(schema: Schema.Schema<A, E, R>) =>
schema as unknown as Schema.Schema<A, PrismaJson.JsonValue, R>