From 59f48723d36c423d9e10b3bd52325a7998314230 Mon Sep 17 00:00:00 2001 From: Colin McDonnell Date: Mon, 22 Apr 2024 15:16:29 -0700 Subject: [PATCH] Change unknown -> any for ZodType defaults --- deno/lib/types.ts | 4 ++-- src/types.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deno/lib/types.ts b/deno/lib/types.ts index bbc414ed4..e31d63de8 100644 --- a/deno/lib/types.ts +++ b/deno/lib/types.ts @@ -166,9 +166,9 @@ export type SafeParseReturnType = | SafeParseError; export abstract class ZodType< - Output = unknown, + Output = any, Def extends ZodTypeDef = ZodTypeDef, - Input = unknown + Input = any > { readonly _type!: Output; readonly _output!: Output; diff --git a/src/types.ts b/src/types.ts index 172d767c3..f103e4cf3 100644 --- a/src/types.ts +++ b/src/types.ts @@ -166,9 +166,9 @@ export type SafeParseReturnType = | SafeParseError; export abstract class ZodType< - Output = unknown, + Output = any, Def extends ZodTypeDef = ZodTypeDef, - Input = unknown + Input = any > { readonly _type!: Output; readonly _output!: Output;