RouteHandler Type — fastify Architecture
Architecture documentation for the RouteHandler type/interface in route.d.ts from the fastify codebase.
Entity Profile
Dependency Diagram
graph TD 6de46596_787b_a25c_e922_85835bc6668a["RouteHandler"] 52813f8b_e087_562d_15f1_38c45eb87051["route.d.ts"] 6de46596_787b_a25c_e922_85835bc6668a -->|defined in| 52813f8b_e087_562d_15f1_38c45eb87051 style 6de46596_787b_a25c_e922_85835bc6668a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
types/route.d.ts lines 167–180
export type RouteHandler<
RouteGeneric extends RouteGenericInterface = RouteGenericInterface,
RawServer extends RawServerBase = RawServerDefault,
RawRequest extends RawRequestDefaultExpression<RawServer> = RawRequestDefaultExpression<RawServer>,
RawReply extends RawReplyDefaultExpression<RawServer> = RawReplyDefaultExpression<RawServer>,
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>
) => RouteGeneric['Reply'] | void | Promise<RouteGeneric['Reply'] | void>
Defined In
Source
Frequently Asked Questions
What is the RouteHandler type?
RouteHandler is a type/interface in the fastify codebase, defined in types/route.d.ts.
Where is RouteHandler defined?
RouteHandler is defined in types/route.d.ts at line 167.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free