fastify 5.12.4 → 5.12.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -215,13 +215,13 @@ export interface FastifyInstance<
215
215
  RouteGeneric extends RouteGenericInterface = RouteGenericInterface,
216
216
  ContextConfig = ContextConfigDefault,
217
217
  SchemaCompiler extends FastifySchema = FastifySchema
218
- >(opts: Pick<RouteOptions<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, SchemaCompiler, TypeProvider>, 'method' | 'url' | 'constraints'>): boolean;
218
+ >(opts: Pick<RouteOptions<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, SchemaCompiler, TypeProvider>, 'url' | 'constraints'> & { method: HTTPMethods }): boolean;
219
219
 
220
220
  findRoute<
221
221
  RouteGeneric extends RouteGenericInterface = RouteGenericInterface,
222
222
  ContextConfig = ContextConfigDefault,
223
223
  SchemaCompiler extends FastifySchema = FastifySchema
224
- >(opts: Pick<RouteOptions<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, SchemaCompiler, TypeProvider>, 'method' | 'url' | 'constraints'>): Omit<FindMyWayFindResult<RawServer>, 'store'>;
224
+ >(opts: Pick<RouteOptions<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, SchemaCompiler, TypeProvider>, 'url' | 'constraints'> & { method: HTTPMethods }): Omit<FindMyWayFindResult<RawServer>, 'store'>;
225
225
 
226
226
  // addHook: overloads
227
227