Skip to content

Commit

Permalink
fix: 🐛 Fix ZodSchemaCompat type incompatibility with zod
Browse files Browse the repository at this point in the history
  • Loading branch information
pklaschka committed Oct 29, 2024
1 parent 2af6d03 commit b87cf99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

0 comments on commit b87cf99

Please sign in to comment.