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; };