route.d.ts — fastify Source File
Architecture documentation for route.d.ts, a typescript file in the fastify codebase. 11 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 52813f8b_e087_562d_15f1_38c45eb87051["route.d.ts"] 3638cb41_31a7_7190_5c54_46a811f35dac["./context"] 52813f8b_e087_562d_15f1_38c45eb87051 --> 3638cb41_31a7_7190_5c54_46a811f35dac ce8cd88b_1c50_7142_5167_00ce90d3f4fc["./hooks"] 52813f8b_e087_562d_15f1_38c45eb87051 --> ce8cd88b_1c50_7142_5167_00ce90d3f4fc 531c9fc1_aab6_113a_24da_d449700fa629["./instance"] 52813f8b_e087_562d_15f1_38c45eb87051 --> 531c9fc1_aab6_113a_24da_d449700fa629 ee998eba_0ed8_8b67_66d6_d2f80d980a41["./logger"] 52813f8b_e087_562d_15f1_38c45eb87051 --> ee998eba_0ed8_8b67_66d6_d2f80d980a41 da3dc06e_ef04_319a_fff5_e5211e80e482["./reply"] 52813f8b_e087_562d_15f1_38c45eb87051 --> da3dc06e_ef04_319a_fff5_e5211e80e482 4285dbb5_245d_95e1_f339_579e1aa1d358["./request"] 52813f8b_e087_562d_15f1_38c45eb87051 --> 4285dbb5_245d_95e1_f339_579e1aa1d358 79072a34_3222_2b87_85da_7f07094af121["./schema"] 52813f8b_e087_562d_15f1_38c45eb87051 --> 79072a34_3222_2b87_85da_7f07094af121 0ec7ea98_0ca5_a578_7447_eb9a7fa7cc31["./type-provider"] 52813f8b_e087_562d_15f1_38c45eb87051 --> 0ec7ea98_0ca5_a578_7447_eb9a7fa7cc31 36d8862b_caf4_88a2_ba4d_4f7ed0738291["./utils"] 52813f8b_e087_562d_15f1_38c45eb87051 --> 36d8862b_caf4_88a2_ba4d_4f7ed0738291 473a42a8_a580_301b_42c4_5215be78511b["error"] 52813f8b_e087_562d_15f1_38c45eb87051 --> 473a42a8_a580_301b_42c4_5215be78511b a7100e84_ef1d_6b83_b1db_5e8bf9540354["find-my-way"] 52813f8b_e087_562d_15f1_38c45eb87051 --> a7100e84_ef1d_6b83_b1db_5e8bf9540354 style 52813f8b_e087_562d_15f1_38c45eb87051 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { FastifyError } from '@fastify/error'
import { ConstraintStrategy } from 'find-my-way'
import { FastifyContextConfig } from './context'
import { onErrorMetaHookHandler, onRequestAbortMetaHookHandler, onRequestMetaHookHandler, onResponseMetaHookHandler, onSendMetaHookHandler, onTimeoutMetaHookHandler, preHandlerMetaHookHandler, preParsingMetaHookHandler, preSerializationMetaHookHandler, preValidationMetaHookHandler } from './hooks'
import { FastifyInstance } from './instance'
import { FastifyBaseLogger, FastifyChildLoggerFactory, LogLevel } from './logger'
import { FastifyReply, ReplyGenericInterface } from './reply'
import { FastifyRequest, RequestGenericInterface } from './request'
import { FastifySchema, FastifySchemaCompiler, FastifySerializerCompiler, SchemaErrorFormatter } from './schema'
import {
FastifyTypeProvider,
FastifyTypeProviderDefault,
ResolveFastifyReplyReturnType
} from './type-provider'
import { ContextConfigDefault, HTTPMethods, RawReplyDefaultExpression, RawRequestDefaultExpression, RawServerBase, RawServerDefault } from './utils'
export interface FastifyRouteConfig {
url: string;
method: HTTPMethods | HTTPMethods[];
}
export interface RouteGenericInterface extends RequestGenericInterface, ReplyGenericInterface { }
export type RouteConstraintType = Omit<ConstraintStrategy<any>, 'deriveConstraint'> & {
deriveConstraint<Context>(req: RawRequestDefaultExpression<RawServerDefault>, ctx?: Context, done?: (err: Error, ...args: any) => any): any,
}
export interface RouteConstraint {
version?: string
host?: RegExp | string
[name: string]: unknown
}
/**
* Route shorthand options for the various shorthand methods
*/
export interface RouteShorthandOptions<
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
> {
schema?: SchemaCompiler, // originally FastifySchema
attachValidation?: boolean;
exposeHeadRoute?: boolean;
validatorCompiler?: FastifySchemaCompiler<NoInfer<SchemaCompiler>>;
serializerCompiler?: FastifySerializerCompiler<NoInfer<SchemaCompiler>>;
bodyLimit?: number;
logLevel?: LogLevel;
config?: FastifyContextConfig & ContextConfig;
constraints?: RouteConstraint,
prefixTrailingSlash?: 'slash' | 'no-slash' | 'both';
errorHandler?: (
this: FastifyInstance<RawServer, RawRequest, RawReply, Logger, TypeProvider>,
error: FastifyError,
// ... (126 more lines)
Domain
Subdomains
Types
Dependencies
- ./context
- ./hooks
- ./instance
- ./logger
- ./reply
- ./request
- ./schema
- ./type-provider
- ./utils
- error
- find-my-way
Source
Frequently Asked Questions
What does route.d.ts do?
route.d.ts is a source file in the fastify codebase, written in typescript. It belongs to the CoreKernel domain, LifecycleManager subdomain.
What functions are defined in route.d.ts?
route.d.ts defines 3 function(s): error, req, request.
What does route.d.ts depend on?
route.d.ts imports 11 module(s): ./context, ./hooks, ./instance, ./logger, ./reply, ./request, ./schema, ./type-provider, and 3 more.
Where is route.d.ts in the architecture?
route.d.ts is located at types/route.d.ts (domain: CoreKernel, subdomain: LifecycleManager, directory: types).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free