From 2893e1659875944198aff28a3ba404858f834ed8 Mon Sep 17 00:00:00 2001 From: Colin McDonnell <colinmcd@alum.mit.edu> Date: Sun, 11 Sep 2022 13:52:47 -0700 Subject: [PATCH] Make unknown input type for preprocess --- deno/lib/types.ts | 2 +- src/types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deno/lib/types.ts b/deno/lib/types.ts index 4a3d77109..318bbc4dd 100644 --- a/deno/lib/types.ts +++ b/deno/lib/types.ts @@ -3565,7 +3565,7 @@ export class ZodEffects< preprocess: (arg: unknown) => unknown, schema: I, params?: RawCreateParams - ): ZodEffects<I, I["_output"]> => { + ): ZodEffects<I, I["_output"], unknown> => { return new ZodEffects({ schema, effect: { type: "preprocess", transform: preprocess }, diff --git a/src/types.ts b/src/types.ts index d0f2bb99f..73b5f6d19 100644 --- a/src/types.ts +++ b/src/types.ts @@ -3565,7 +3565,7 @@ export class ZodEffects< preprocess: (arg: unknown) => unknown, schema: I, params?: RawCreateParams - ): ZodEffects<I, I["_output"]> => { + ): ZodEffects<I, I["_output"], unknown> => { return new ZodEffects({ schema, effect: { type: "preprocess", transform: preprocess },