From d990ce34f4cff5485a653506bd979540dd1c2324 Mon Sep 17 00:00:00 2001 From: Bastiaan Date: Wed, 24 Jan 2024 13:40:30 +0000 Subject: [PATCH] make examples use both input and output types of zod --- src/zod-extensions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zod-extensions.ts b/src/zod-extensions.ts index 65aac7a..866a477 100644 --- a/src/zod-extensions.ts +++ b/src/zod-extensions.ts @@ -46,13 +46,13 @@ declare module 'zod' { > { openapi( this: T, - metadata: Partial>> + metadata: Partial | z.output>> ): T; openapi( this: T, refId: string, - metadata?: Partial>> + metadata?: Partial | z.output>> ): T; } }