Skip to content

Commit

Permalink
make examples use both input and output types of zod
Browse files Browse the repository at this point in the history
  • Loading branch information
tionkje committed Feb 23, 2024
1 parent 870d272 commit d990ce3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/zod-extensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ declare module 'zod' {
> {
openapi<T extends ZodTypeAny>(
this: T,
metadata: Partial<ZodOpenAPIMetadata<z.infer<T>>>
metadata: Partial<ZodOpenAPIMetadata<z.input<T> | z.output<T>>>
): T;

openapi<T extends ZodTypeAny>(
this: T,
refId: string,
metadata?: Partial<ZodOpenAPIMetadata<z.infer<T>>>
metadata?: Partial<ZodOpenAPIMetadata<z.input<T> | z.output<T>>>
): T;
}
}
Expand Down

0 comments on commit d990ce3

Please sign in to comment.