0.1.11 #12

Merged
Thilawyn merged 13 commits from next into master 2024-08-20 22:17:43 +02:00
Showing only changes of commit 2cd09fe2f7 - Show all commits

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. * 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>) => export const encodedAsPrismaJsonValue = <A, E extends JsonValue, R>(schema: Schema.Schema<A, E, R>) =>
schema as Schema.Schema<A, PrismaJson.JsonValue, R> schema as unknown as Schema.Schema<A, PrismaJson.JsonValue, R>