Home / Type/ preSerializationHookHandler Type — fastify Architecture

preSerializationHookHandler Type — fastify Architecture

Architecture documentation for the preSerializationHookHandler type/interface in hooks.d.ts from the fastify codebase.

Entity Profile

Dependency Diagram

graph TD
  e4fb0ed5_ac78_6ebe_effb_3bac417c468c["preSerializationHookHandler"]
  f0d1ac66_cb60_3d2a_ebcc_1faa11c21aad["hooks.d.ts"]
  e4fb0ed5_ac78_6ebe_effb_3bac417c468c -->|defined in| f0d1ac66_cb60_3d2a_ebcc_1faa11c21aad
  style e4fb0ed5_ac78_6ebe_effb_3bac417c468c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

types/hooks.d.ts lines 264–282

export interface preSerializationHookHandler<
  PreSerializationPayload = unknown,
  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>,
    payload: PreSerializationPayload,
    done: DoneFuncWithErrOrRes
  ): void;
}

Defined In

Frequently Asked Questions

What is the preSerializationHookHandler type?
preSerializationHookHandler is a type/interface in the fastify codebase, defined in types/hooks.d.ts.
Where is preSerializationHookHandler defined?
preSerializationHookHandler is defined in types/hooks.d.ts at line 264.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free