Skip to content

Commit

Permalink
Merge pull request #206 from tionkje/master
Browse files Browse the repository at this point in the history
make examples use both input and output types of zod
  • Loading branch information
AGalabov authored Mar 1, 2024
2 parents 870d272 + d990ce3 commit b7429c7
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 b7429c7

Please sign in to comment.