instance.d.ts — fastify Source File
Architecture documentation for instance.d.ts, a typescript file in the fastify codebase. 16 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 4e9bf84a_5251_4fe5_a2a2_55aee9ba1a06["instance.d.ts"] 1a915d33_3ad6_638e_0832_f79c3fdde3c6["./content-type-parser"] 4e9bf84a_5251_4fe5_a2a2_55aee9ba1a06 --> 1a915d33_3ad6_638e_0832_f79c3fdde3c6 ce8cd88b_1c50_7142_5167_00ce90d3f4fc["./hooks"] 4e9bf84a_5251_4fe5_a2a2_55aee9ba1a06 --> ce8cd88b_1c50_7142_5167_00ce90d3f4fc ee998eba_0ed8_8b67_66d6_d2f80d980a41["./logger"] 4e9bf84a_5251_4fe5_a2a2_55aee9ba1a06 --> ee998eba_0ed8_8b67_66d6_d2f80d980a41 e80980b2_9d58_285b_22f1_f985aaec3d65["./register"] 4e9bf84a_5251_4fe5_a2a2_55aee9ba1a06 --> e80980b2_9d58_285b_22f1_f985aaec3d65 da3dc06e_ef04_319a_fff5_e5211e80e482["./reply"] 4e9bf84a_5251_4fe5_a2a2_55aee9ba1a06 --> da3dc06e_ef04_319a_fff5_e5211e80e482 4285dbb5_245d_95e1_f339_579e1aa1d358["./request"] 4e9bf84a_5251_4fe5_a2a2_55aee9ba1a06 --> 4285dbb5_245d_95e1_f339_579e1aa1d358 6a6fa08e_3d60_0520_25ea_dea35398fc8f["./route"] 4e9bf84a_5251_4fe5_a2a2_55aee9ba1a06 --> 6a6fa08e_3d60_0520_25ea_dea35398fc8f 79072a34_3222_2b87_85da_7f07094af121["./schema"] 4e9bf84a_5251_4fe5_a2a2_55aee9ba1a06 --> 79072a34_3222_2b87_85da_7f07094af121 0ec7ea98_0ca5_a578_7447_eb9a7fa7cc31["./type-provider"] 4e9bf84a_5251_4fe5_a2a2_55aee9ba1a06 --> 0ec7ea98_0ca5_a578_7447_eb9a7fa7cc31 36d8862b_caf4_88a2_ba4d_4f7ed0738291["./utils"] 4e9bf84a_5251_4fe5_a2a2_55aee9ba1a06 --> 36d8862b_caf4_88a2_ba4d_4f7ed0738291 2bf9986b_b7fb_0c78_f075_72fbe6f4672b["fastify.js"] 4e9bf84a_5251_4fe5_a2a2_55aee9ba1a06 --> 2bf9986b_b7fb_0c78_f075_72fbe6f4672b 473a42a8_a580_301b_42c4_5215be78511b["error"] 4e9bf84a_5251_4fe5_a2a2_55aee9ba1a06 --> 473a42a8_a580_301b_42c4_5215be78511b a7100e84_ef1d_6b83_b1db_5e8bf9540354["find-my-way"] 4e9bf84a_5251_4fe5_a2a2_55aee9ba1a06 --> a7100e84_ef1d_6b83_b1db_5e8bf9540354 bd94e3ff_2705_51a0_bac0_884f2c38b615["node:http"] 4e9bf84a_5251_4fe5_a2a2_55aee9ba1a06 --> bd94e3ff_2705_51a0_bac0_884f2c38b615 style 4e9bf84a_5251_4fe5_a2a2_55aee9ba1a06 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { FastifyError } from '@fastify/error'
import { ConstraintStrategy, FindResult, HTTPVersion } from 'find-my-way'
import * as http from 'node:http'
import { InjectOptions, CallbackFunc as LightMyRequestCallback, Chain as LightMyRequestChain, Response as LightMyRequestResponse } from 'light-my-request'
import { AddressInfo } from 'node:net'
import { AddContentTypeParser, ConstructorAction, FastifyBodyParser, ProtoAction, getDefaultJsonParser, hasContentTypeParser, removeAllContentTypeParsers, removeContentTypeParser } from './content-type-parser'
import { ApplicationHook, HookAsyncLookup, HookLookup, LifecycleHook, onCloseAsyncHookHandler, onCloseHookHandler, onErrorAsyncHookHandler, onErrorHookHandler, onListenAsyncHookHandler, onListenHookHandler, onReadyAsyncHookHandler, onReadyHookHandler, onRegisterHookHandler, onRequestAbortAsyncHookHandler, onRequestAbortHookHandler, onRequestAsyncHookHandler, onRequestHookHandler, onResponseAsyncHookHandler, onResponseHookHandler, onRouteHookHandler, onSendAsyncHookHandler, onSendHookHandler, onTimeoutAsyncHookHandler, onTimeoutHookHandler, preCloseAsyncHookHandler, preCloseHookHandler, preHandlerAsyncHookHandler, preHandlerHookHandler, preParsingAsyncHookHandler, preParsingHookHandler, preSerializationAsyncHookHandler, preSerializationHookHandler, preValidationAsyncHookHandler, preValidationHookHandler } from './hooks'
import { FastifyBaseLogger, FastifyChildLoggerFactory } from './logger'
import { FastifyRegister } from './register'
import { FastifyReply } from './reply'
import { FastifyRequest } from './request'
import { RouteGenericInterface, RouteHandlerMethod, RouteOptions, RouteShorthandMethod } from './route'
import {
FastifySchema,
FastifySchemaCompiler,
FastifySchemaControllerOptions,
FastifySerializerCompiler,
SchemaErrorFormatter
} from './schema'
import {
FastifyTypeProvider,
FastifyTypeProviderDefault,
SafePromiseLike
} from './type-provider'
import { ContextConfigDefault, HTTPMethods, RawReplyDefaultExpression, RawRequestDefaultExpression, RawServerBase, RawServerDefault } from './utils'
import { FastifyRouterOptions } from '../fastify'
export interface PrintRoutesOptions {
method?: HTTPMethods;
includeMeta?: boolean | (string | symbol)[]
commonPrefix?: boolean
includeHooks?: boolean
}
type AsyncFunction = (...args: any) => Promise<any>
export interface FastifyListenOptions {
/**
* Default to `0` (picks the first available open port).
*/
port?: number;
/**
* Default to `localhost`.
*/
host?: string;
/**
* Will be ignored if `port` is specified.
* @see [Identifying paths for IPC connections](https://nodejs.org/api/net.html#identifying-paths-for-ipc-connections).
*/
path?: string;
/**
* Specify the maximum length of the queue of pending connections.
* The actual length will be determined by the OS through sysctl settings such as `tcp_max_syn_backlog` and `somaxconn` on Linux.
* Default to `511`.
*/
backlog?: number;
/**
* Default to `false`.
*/
exclusive?: boolean;
// ... (550 more lines)
Domain
Subdomains
Types
Dependencies
- ./content-type-parser
- ./hooks
- ./logger
- ./register
- ./reply
- ./request
- ./route
- ./schema
- ./type-provider
- ./utils
- error
- fastify.js
- find-my-way
- light-my-request
- node:http
- node:net
Source
Frequently Asked Questions
What does instance.d.ts do?
instance.d.ts is a source file in the fastify codebase, written in typescript. It belongs to the CoreKernel domain, InstanceFactory subdomain.
What functions are defined in instance.d.ts?
instance.d.ts defines 6 function(s): T, address, args, error, req, value.
What does instance.d.ts depend on?
instance.d.ts imports 16 module(s): ./content-type-parser, ./hooks, ./logger, ./register, ./reply, ./request, ./route, ./schema, and 8 more.
Where is instance.d.ts in the architecture?
instance.d.ts is located at types/instance.d.ts (domain: CoreKernel, subdomain: InstanceFactory, directory: types).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free