RouteHandlerMethod Type — fastify Architecture
Architecture documentation for the RouteHandlerMethod type/interface in route.d.ts from the fastify codebase.
Entity Profile
Dependency Diagram
graph TD 5815d926_dcca_f9c2_4525_9f44036699c6["RouteHandlerMethod"] 52813f8b_e087_562d_15f1_38c45eb87051["route.d.ts"] 5815d926_dcca_f9c2_4525_9f44036699c6 -->|defined in| 52813f8b_e087_562d_15f1_38c45eb87051 style 5815d926_dcca_f9c2_4525_9f44036699c6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
types/route.d.ts lines 92–106
export type RouteHandlerMethod<
RawServer extends RawServerBase = RawServerDefault,
RawRequest extends RawRequestDefaultExpression<RawServer> = RawRequestDefaultExpression<RawServer>,
RawReply extends RawReplyDefaultExpression<RawServer> = RawReplyDefaultExpression<RawServer>,
RouteGeneric extends RouteGenericInterface = RouteGenericInterface,
ContextConfig = ContextConfigDefault,
SchemaCompiler extends FastifySchema = FastifySchema,
TypeProvider extends FastifyTypeProvider = FastifyTypeProviderDefault,
Logger extends FastifyBaseLogger = FastifyBaseLogger
> = (
this: FastifyInstance<RawServer, RawRequest, RawReply, Logger, TypeProvider>,
request: FastifyRequest<RouteGeneric, RawServer, RawRequest, SchemaCompiler, TypeProvider, ContextConfig, Logger>,
reply: FastifyReply<RouteGeneric, RawServer, RawRequest, RawReply, ContextConfig, SchemaCompiler, TypeProvider>
// This return type used to be a generic type argument. Due to TypeScript's inference of return types, this rendered returns unchecked.
) => ResolveFastifyReplyReturnType<TypeProvider, SchemaCompiler, RouteGeneric>
Defined In
Source
Frequently Asked Questions
What is the RouteHandlerMethod type?
RouteHandlerMethod is a type/interface in the fastify codebase, defined in types/route.d.ts.
Where is RouteHandlerMethod defined?
RouteHandlerMethod is defined in types/route.d.ts at line 92.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free