diff --git a/index.d.ts b/index.d.ts index f1cbe3a7..9bbc5854 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,4 +1,4 @@ -import { FastifyPluginCallback, FastifySchema, FastifyRequest, onRequestHookHandler, preHandlerHookHandler } from 'fastify'; +import { FastifyPluginCallback, FastifySchema, RouteOptions, onRequestHookHandler, preHandlerHookHandler } from 'fastify'; import { OpenAPI, OpenAPIV2, OpenAPIV3, OpenAPIV3_1 } from 'openapi-types'; /** @@ -127,7 +127,7 @@ declare namespace fastifySwagger { transform?: ({ schema, url, route, swaggerObject, openapiObject }: { schema: S, url: string, - route: FastifyRequest, + route: RouteOptions, swaggerObject: Partial openapiObject: Partial }) => { schema: FastifySchema, url: string };