@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user