Home / Type/ FastifyRouterOptions Type — fastify Architecture

FastifyRouterOptions Type — fastify Architecture

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

Entity Profile

Dependency Diagram

graph TD
  ee141cce_4ed1_95db_8aae_d0c96dc34102["FastifyRouterOptions"]
  cb91d14d_6002_0517_9501_c656cef3fccb["fastify.d.ts"]
  ee141cce_4ed1_95db_8aae_d0c96dc34102 -->|defined in| cb91d14d_6002_0517_9501_c656cef3fccb
  style ee141cce_4ed1_95db_8aae_d0c96dc34102 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

fastify.d.ts lines 93–104

  export type FastifyRouterOptions<RawServer extends RawServerBase> = Omit<FindMyWayConfigForServer<RawServer>, 'defaultRoute' | 'onBadUrl' | 'querystringParser'> & {
    defaultRoute?: (
      req: RawRequestDefaultExpression<RawServer>,
      res: RawReplyDefaultExpression<RawServer>
    ) => void,
    onBadUrl?: (
      path: string,
      req: RawRequestDefaultExpression<RawServer>,
      res: RawReplyDefaultExpression<RawServer>
    ) => void,
    querystringParser?: (str: string) => { [key: string]: unknown }
  }

Defined In

Frequently Asked Questions

What is the FastifyRouterOptions type?
FastifyRouterOptions is a type/interface in the fastify codebase, defined in fastify.d.ts.
Where is FastifyRouterOptions defined?
FastifyRouterOptions is defined in fastify.d.ts at line 93.

Analyze Your Own Codebase

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

Try Supermodel Free