From b87cf9941ca63cad1ea231a800cba24efc82f63e Mon Sep 17 00:00:00 2001 From: zklaschka Date: Tue, 29 Oct 2024 04:42:59 +0100 Subject: [PATCH] fix: :bug: Fix `ZodSchemaCompat` type incompatibility with `zod` --- mod.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod.ts b/mod.ts index 0e963bd..5a717e3 100644 --- a/mod.ts +++ b/mod.ts @@ -234,6 +234,6 @@ function logger() { * A type that is compatible with Zod schemas. */ export type ZodSchemaCompat = { - safeParse: (value: unknown) => { error: Error | null }; + safeParse: (value: unknown) => { error: Error | null | undefined }; isOptional: () => boolean; };