From 7742b63b90c65d20f5b10da80428e0cbc48c5939 Mon Sep 17 00:00:00 2001 From: Akira HIGUCHI Date: Wed, 8 Jan 2025 14:49:02 +0900 Subject: [PATCH] fix: empty effect --- src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.ts b/src/index.ts index b09c896..16854d7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -116,6 +116,8 @@ export function empty(schema: T): input { case "ZodNullable": case "ZodOptional": return empty(def.innerType); + case "ZodEffects": + return empty(def.schema); case "ZodLiteral": return def.value; case "ZodNaN":