RouteShorthandMethod Type — fastify Architecture
Architecture documentation for the RouteShorthandMethod type/interface in route.d.ts from the fastify codebase.
Entity Profile
Dependency Diagram
graph TD 9d093467_dfa8_bcb1_bbd9_fe4ac2e190f8["RouteShorthandMethod"] 52813f8b_e087_562d_15f1_38c45eb87051["route.d.ts"] 9d093467_dfa8_bcb1_bbd9_fe4ac2e190f8 -->|defined in| 52813f8b_e087_562d_15f1_38c45eb87051 style 9d093467_dfa8_bcb1_bbd9_fe4ac2e190f8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
types/route.d.ts lines 127–147
export interface RouteShorthandMethod<
RawServer extends RawServerBase = RawServerDefault,
RawRequest extends RawRequestDefaultExpression<RawServer> = RawRequestDefaultExpression<RawServer>,
RawReply extends RawReplyDefaultExpression<RawServer> = RawReplyDefaultExpression<RawServer>,
TypeProvider extends FastifyTypeProvider = FastifyTypeProviderDefault,
Logger extends FastifyBaseLogger = FastifyBaseLogger
> {
<RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault, const SchemaCompiler extends FastifySchema = FastifySchema>(
path: string,
opts: RouteShorthandOptions<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, SchemaCompiler, TypeProvider, Logger>,
handler: RouteHandlerMethod<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, SchemaCompiler, TypeProvider, Logger>
): FastifyInstance<RawServer, RawRequest, RawReply, Logger, TypeProvider>;
<RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault, const SchemaCompiler extends FastifySchema = FastifySchema>(
path: string,
handler: RouteHandlerMethod<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, SchemaCompiler, TypeProvider, Logger>
): FastifyInstance<RawServer, RawRequest, RawReply, Logger, TypeProvider>;
<RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault, const SchemaCompiler extends FastifySchema = FastifySchema>(
path: string,
opts: RouteShorthandOptionsWithHandler<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, SchemaCompiler, TypeProvider, Logger>
): FastifyInstance<RawServer, RawRequest, RawReply, Logger, TypeProvider>;
}
Defined In
Source
Frequently Asked Questions
What is the RouteShorthandMethod type?
RouteShorthandMethod is a type/interface in the fastify codebase, defined in types/route.d.ts.
Where is RouteShorthandMethod defined?
RouteShorthandMethod is defined in types/route.d.ts at line 127.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free