We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a6f5681 + b806bb0 commit 90ecc97Copy full SHA for 90ecc97
src/zod-extensions.ts
@@ -27,7 +27,7 @@ declare module 'zod' {
27
openapi?: ZodOpenApiFullMetadata;
28
}
29
30
- abstract class ZodSchema<Output, Def extends ZodTypeDef, Input = Output> {
+ interface ZodSchema<Output, Def extends ZodTypeDef, Input = Output> {
31
openapi<T extends ZodSchema<any>>(
32
this: T,
33
metadata: Partial<ZodOpenAPIMetadata<z.infer<T>>>
0 commit comments