From 3c6cdd245ab73d7ca1461a18b5be2da07abe6b6b Mon Sep 17 00:00:00 2001 From: Colin McDonnell Date: Sat, 4 Mar 2023 01:46:38 -0800 Subject: [PATCH] Make generic optional in objectOutputType --- 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 41faaf69a..53d408108 100644 --- a/deno/lib/types.ts +++ b/deno/lib/types.ts @@ -2128,7 +2128,7 @@ export type baseObjectOutputType = export type objectOutputType< Shape extends ZodRawShape, Catchall extends ZodTypeAny, - UnknownKeys extends UnknownKeysParam + UnknownKeys extends UnknownKeysParam = UnknownKeysParam > = ZodTypeAny extends Catchall ? objectUtil.flatten> & Passthrough : objectUtil.flatten< @@ -2149,7 +2149,7 @@ export type Passthrough = export type objectInputType< Shape extends ZodRawShape, Catchall extends ZodTypeAny, - UnknownKeys extends UnknownKeysParam + UnknownKeys extends UnknownKeysParam = UnknownKeysParam > = ZodTypeAny extends Catchall ? baseObjectInputType & Passthrough : objectUtil.flatten< diff --git a/src/types.ts b/src/types.ts index 603861f92..f3aae4a05 100644 --- a/src/types.ts +++ b/src/types.ts @@ -2128,7 +2128,7 @@ export type baseObjectOutputType = export type objectOutputType< Shape extends ZodRawShape, Catchall extends ZodTypeAny, - UnknownKeys extends UnknownKeysParam + UnknownKeys extends UnknownKeysParam = UnknownKeysParam > = ZodTypeAny extends Catchall ? objectUtil.flatten> & Passthrough : objectUtil.flatten< @@ -2149,7 +2149,7 @@ export type Passthrough = export type objectInputType< Shape extends ZodRawShape, Catchall extends ZodTypeAny, - UnknownKeys extends UnknownKeysParam + UnknownKeys extends UnknownKeysParam = UnknownKeysParam > = ZodTypeAny extends Catchall ? baseObjectInputType & Passthrough : objectUtil.flatten<