diff --git a/index.ts b/index.ts index c830a9c..4bac146 100644 --- a/index.ts +++ b/index.ts @@ -49,7 +49,7 @@ export const TypeBoxValidatorCompiler: FastifySchemaCompiler = ({ schem * ``` */ export interface TypeBoxTypeProvider extends FastifyTypeProvider { - output: this['input'] extends TSchema ? Static : never + output: this['input'] extends TSchema ? Static : unknown } /** diff --git a/types/index.test-d.ts b/types/index.test-d.ts index ef76c89..9027e68 100644 --- a/types/index.test-d.ts +++ b/types/index.test-d.ts @@ -5,6 +5,7 @@ import Fastify, { FastifyInstance, FastifyLoggerInstance, RawReplyDefaultExpress const fastify = Fastify().withTypeProvider() expectAssignable>(fastify) +expectAssignable(fastify) fastify.get('/', { schema: {