Skip to content

Commit

Permalink
Make unknown input type for preprocess
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin McDonnell committed Sep 11, 2022
1 parent d40a5eb commit 2893e16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deno/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down

2 comments on commit 2893e16

@olpeh
Copy link

@olpeh olpeh commented on 2893e16 Dec 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why?

@ConnorSinnott
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this has introduced a bug, or at the minimum and unexpected behavior. Link

Please sign in to comment.