fastify
Advanced tools
Comparing version 4.23.1 to 4.23.2
'use strict' | ||
const VERSION = '4.23.1' | ||
const VERSION = '4.23.2' | ||
@@ -5,0 +5,0 @@ const Avvio = require('avvio') |
{ | ||
"name": "fastify", | ||
"version": "4.23.1", | ||
"version": "4.23.2", | ||
"description": "Fast and low overhead web framework, for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "fastify.js", |
@@ -84,2 +84,3 @@ import pino from 'pino' | ||
expectType<FastifySchema>(request.routeSchema) | ||
expectType<FastifySchema>(request.routeOptions.schema) | ||
@@ -86,0 +87,0 @@ expectType<RequestHeadersDefault & RawRequestDefaultExpression['headers']>(request.headers) |
@@ -23,12 +23,13 @@ import { ErrorObject } from '@fastify/ajv-compiler' | ||
export interface RequestRouteOptions<ContextConfig = ContextConfigDefault> { | ||
method: string, | ||
url: string, | ||
bodyLimit:number, | ||
attachValidation:boolean, | ||
logLevel:string, | ||
version: string | undefined, | ||
exposeHeadRoute: boolean, | ||
prefixTrailingSlash: string, | ||
config: FastifyContextConfig & FastifyRouteConfig & ContextConfig | ||
export interface RequestRouteOptions<ContextConfig = ContextConfigDefault, SchemaCompiler = FastifySchema> { | ||
method: string; | ||
url: string; | ||
bodyLimit:number; | ||
attachValidation:boolean; | ||
logLevel:string; | ||
version: string | undefined; | ||
exposeHeadRoute: boolean; | ||
prefixTrailingSlash: string; | ||
config: FastifyContextConfig & FastifyRouteConfig & ContextConfig; | ||
schema: SchemaCompiler; | ||
} | ||
@@ -83,3 +84,3 @@ | ||
readonly routerMethod: string; | ||
readonly routeOptions: Readonly<RequestRouteOptions<ContextConfig>> | ||
readonly routeOptions: Readonly<RequestRouteOptions<ContextConfig, SchemaCompiler>> | ||
readonly is404: boolean; | ||
@@ -86,0 +87,0 @@ readonly socket: RawRequest['socket']; |
2289612
55069