Skip to content

Commit

Permalink
Set input type of ZodCatch to unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin McDonnell committed Feb 8, 2023
1 parent fee81ca commit b8d731f
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
Expand Up @@ -4143,7 +4143,7 @@ export interface ZodCatchDef<
export class ZodCatch<T extends ZodTypeAny> extends ZodType<
T["_output"],
ZodCatchDef<T>,
T["_input"]
unknown // any input will pass validation // T["_input"]
> {
_parse(input: ParseInput): ParseReturnType<this["_output"]> {
const { ctx } = this._processInputParams(input);
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Expand Up @@ -4143,7 +4143,7 @@ export interface ZodCatchDef<
export class ZodCatch<T extends ZodTypeAny> extends ZodType<
T["_output"],
ZodCatchDef<T>,
T["_input"]
unknown // any input will pass validation // T["_input"]
> {
_parse(input: ParseInput): ParseReturnType<this["_output"]> {
const { ctx } = this._processInputParams(input);
Expand Down

0 comments on commit b8d731f

Please sign in to comment.