diff --git a/src/plugin.ts b/src/plugin.ts index 7672d4f..d317fbe 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -39,7 +39,7 @@ declare module 'openapi-types' { } export interface FastifyZodOpenApiTypeProvider extends FastifyTypeProvider { - output: this['input'] extends ZodType ? z.infer : never; + output: this['input'] extends ZodType ? z.infer : unknown; } export type FastifyZodOpenApi = FastifyPluginAsync;