request.test-d.ts — fastify Source File
Architecture documentation for request.test-d.ts, a typescript file in the fastify codebase. 8 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 01a047b2_eacc_37c4_06c9_06b0e54cb0e2["request.test-d.ts"] 2bf9986b_b7fb_0c78_f075_72fbe6f4672b["fastify.js"] 01a047b2_eacc_37c4_06c9_06b0e54cb0e2 --> 2bf9986b_b7fb_0c78_f075_72fbe6f4672b 531c9fc1_aab6_113a_24da_d449700fa629["./instance"] 01a047b2_eacc_37c4_06c9_06b0e54cb0e2 --> 531c9fc1_aab6_113a_24da_d449700fa629 ee998eba_0ed8_8b67_66d6_d2f80d980a41["./logger"] 01a047b2_eacc_37c4_06c9_06b0e54cb0e2 --> ee998eba_0ed8_8b67_66d6_d2f80d980a41 da3dc06e_ef04_319a_fff5_e5211e80e482["./reply"] 01a047b2_eacc_37c4_06c9_06b0e54cb0e2 --> da3dc06e_ef04_319a_fff5_e5211e80e482 4285dbb5_245d_95e1_f339_579e1aa1d358["./request"] 01a047b2_eacc_37c4_06c9_06b0e54cb0e2 --> 4285dbb5_245d_95e1_f339_579e1aa1d358 6a6fa08e_3d60_0520_25ea_dea35398fc8f["./route"] 01a047b2_eacc_37c4_06c9_06b0e54cb0e2 --> 6a6fa08e_3d60_0520_25ea_dea35398fc8f 36d8862b_caf4_88a2_ba4d_4f7ed0738291["./utils"] 01a047b2_eacc_37c4_06c9_06b0e54cb0e2 --> 36d8862b_caf4_88a2_ba4d_4f7ed0738291 1741b237_9033_f1d9_f91f_94ad04e621d4["tsd"] 01a047b2_eacc_37c4_06c9_06b0e54cb0e2 --> 1741b237_9033_f1d9_f91f_94ad04e621d4 style 01a047b2_eacc_37c4_06c9_06b0e54cb0e2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { expectAssignable, expectError, expectType } from 'tsd'
import fastify, {
ContextConfigDefault,
FastifyContextConfig,
FastifyLogFn,
FastifySchema,
FastifyTypeProviderDefault,
RawReplyDefaultExpression,
RawRequestDefaultExpression,
RawServerDefault,
RequestBodyDefault,
RequestGenericInterface,
RouteHandler,
RouteHandlerMethod,
SafePromiseLike
} from '../../fastify'
import { FastifyInstance } from '../../types/instance'
import { FastifyBaseLogger } from '../../types/logger'
import { FastifyReply } from '../../types/reply'
import { FastifyRequest, RequestRouteOptions } from '../../types/request'
import { FastifyRouteConfig, RouteGenericInterface } from '../../types/route'
import { RequestHeadersDefault, RequestParamsDefault, RequestQuerystringDefault } from '../../types/utils'
interface RequestBody {
content: string;
}
interface RequestQuerystring {
from: string;
}
interface RequestParams {
id: number;
}
interface RequestHeaders {
'x-foobar': string;
}
interface RequestData extends RequestGenericInterface {
Body: RequestBody;
Querystring: RequestQuerystring;
Params: RequestParams;
Headers: RequestHeaders;
}
type Handler = RouteHandler<RequestData>
type CustomRequest = FastifyRequest<{
Body: RequestBody | undefined;
Querystring: RequestQuerystring;
Params: RequestParams;
Headers: RequestHeaders;
}>
type HTTPRequestPart = 'body' | 'query' | 'querystring' | 'params' | 'headers'
type ExpectedGetValidationFunction = (input: { [key: string]: unknown }) => boolean
interface CustomLoggerInterface extends FastifyBaseLogger {
foo: FastifyLogFn; // custom severity logger method
// ... (128 more lines)
Domain
Subdomains
Functions
Types
Dependencies
- ./instance
- ./logger
- ./reply
- ./request
- ./route
- ./utils
- fastify.js
- tsd
Source
Frequently Asked Questions
What does request.test-d.ts do?
request.test-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 request.test-d.ts?
request.test-d.ts defines 14 function(s): customLogger.child, customLogger.debug, customLogger.error, customLogger.fatal, customLogger.foo, customLogger.info, customLogger.silent, customLogger.trace, customLogger.warn, getHandler, and 4 more.
What does request.test-d.ts depend on?
request.test-d.ts imports 8 module(s): ./instance, ./logger, ./reply, ./request, ./route, ./utils, fastify.js, tsd.
Where is request.test-d.ts in the architecture?
request.test-d.ts is located at test/types/request.test-d.ts (domain: CoreKernel, subdomain: LifecycleManager, directory: test/types).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free