Home / File/ fastify.test-d.ts — fastify Source File

fastify.test-d.ts — fastify Source File

Architecture documentation for fastify.test-d.ts, a typescript file in the fastify codebase. 8 imports, 0 dependents.

File typescript CoreKernel InstanceFactory 8 imports 8 functions

Entity Profile

Dependency Diagram

graph LR
  9c156972_4d03_71ef_d490_0fbe31879cce["fastify.test-d.ts"]
  2bf9986b_b7fb_0c78_f075_72fbe6f4672b["fastify.js"]
  9c156972_4d03_71ef_d490_0fbe31879cce --> 2bf9986b_b7fb_0c78_f075_72fbe6f4672b
  ee998eba_0ed8_8b67_66d6_d2f80d980a41["./logger"]
  9c156972_4d03_71ef_d490_0fbe31879cce --> ee998eba_0ed8_8b67_66d6_d2f80d980a41
  a40723e4_9f3f_2c2e_a977_2144c4e26ee8["ajv"]
  9c156972_4d03_71ef_d490_0fbe31879cce --> a40723e4_9f3f_2c2e_a977_2144c4e26ee8
  bd94e3ff_2705_51a0_bac0_884f2c38b615["node:http"]
  9c156972_4d03_71ef_d490_0fbe31879cce --> bd94e3ff_2705_51a0_bac0_884f2c38b615
  3e7d58ec_f92a_95db_e97c_fb49a00b5105["node:http2"]
  9c156972_4d03_71ef_d490_0fbe31879cce --> 3e7d58ec_f92a_95db_e97c_fb49a00b5105
  663b99b5_576e_9407_ccf2_377b37f4ae0d["node:https"]
  9c156972_4d03_71ef_d490_0fbe31879cce --> 663b99b5_576e_9407_ccf2_377b37f4ae0d
  c4e54c41_7c1c_2804_4ec7_0998c7ead6fc["node:net"]
  9c156972_4d03_71ef_d490_0fbe31879cce --> c4e54c41_7c1c_2804_4ec7_0998c7ead6fc
  1741b237_9033_f1d9_f91f_94ad04e621d4["tsd"]
  9c156972_4d03_71ef_d490_0fbe31879cce --> 1741b237_9033_f1d9_f91f_94ad04e621d4
  style 9c156972_4d03_71ef_d490_0fbe31879cce fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import Ajv, { ErrorObject as AjvErrorObject } from 'ajv'
import * as http from 'node:http'
import * as http2 from 'node:http2'
import * as https from 'node:https'
import { Socket } from 'node:net'
import { expectAssignable, expectError, expectNotAssignable, expectType } from 'tsd'
import fastify, {
  ConnectionError,
  FastifyBaseLogger,
  FastifyError,
  FastifyErrorCodes,
  FastifyInstance,
  FastifyPlugin,
  FastifyPluginAsync,
  FastifyPluginCallback,
  InjectOptions,
  LightMyRequestCallback,
  LightMyRequestChain,
  LightMyRequestResponse,
  RawRequestDefaultExpression,
  RouteGenericInterface,
  SafePromiseLike
} from '../../fastify'
import { Bindings, ChildLoggerOptions } from '../../types/logger'

// FastifyInstance
// http server
expectError<
  FastifyInstance<http.Server, http.IncomingMessage, http.ServerResponse> &
  Promise<FastifyInstance<http.Server, http.IncomingMessage, http.ServerResponse>>
>(fastify())
expectAssignable<
  FastifyInstance<http.Server, http.IncomingMessage, http.ServerResponse> &
  PromiseLike<FastifyInstance<http.Server, http.IncomingMessage, http.ServerResponse>>
>(fastify())
expectType<
  FastifyInstance<http.Server, http.IncomingMessage, http.ServerResponse> &
  SafePromiseLike<FastifyInstance<http.Server, http.IncomingMessage, http.ServerResponse>>
>(fastify())
expectType<
  FastifyInstance<http.Server, http.IncomingMessage, http.ServerResponse> &
  SafePromiseLike<FastifyInstance<http.Server, http.IncomingMessage, http.ServerResponse>>
>(fastify({}))
expectType<
  FastifyInstance<http.Server, http.IncomingMessage, http.ServerResponse> &
  SafePromiseLike<FastifyInstance<http.Server, http.IncomingMessage, http.ServerResponse>>
>(fastify({ http: {} }))
// https server
expectType<
  FastifyInstance<https.Server, http.IncomingMessage, http.ServerResponse> &
  SafePromiseLike<FastifyInstance<https.Server, http.IncomingMessage, http.ServerResponse>>
>(fastify({ https: {} }))
expectType<
  FastifyInstance<https.Server, http.IncomingMessage, http.ServerResponse> &
  SafePromiseLike<FastifyInstance<https.Server, http.IncomingMessage, http.ServerResponse>>
>(fastify({ https: null }))
// http2 server
expectType<
  FastifyInstance<http2.Http2Server, http2.Http2ServerRequest, http2.Http2ServerResponse> &
  SafePromiseLike<FastifyInstance<http2.Http2Server, http2.Http2ServerRequest, http2.Http2ServerResponse>>
// ... (292 more lines)

Domain

Subdomains

Dependencies

  • ./logger
  • ajv
  • fastify.js
  • node:http
  • node:http2
  • node:https
  • node:net
  • tsd

Frequently Asked Questions

What does fastify.test-d.ts do?
fastify.test-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 fastify.test-d.ts?
fastify.test-d.ts defines 8 function(s): customLogger.child, customLogger.debug, customLogger.error, customLogger.fatal, customLogger.info, customLogger.trace, customLogger.warn, lightMyRequestCallback.
What does fastify.test-d.ts depend on?
fastify.test-d.ts imports 8 module(s): ./logger, ajv, fastify.js, node:http, node:http2, node:https, node:net, tsd.
Where is fastify.test-d.ts in the architecture?
fastify.test-d.ts is located at test/types/fastify.test-d.ts (domain: CoreKernel, subdomain: InstanceFactory, directory: test/types).

Analyze Your Own Codebase

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

Try Supermodel Free