Skip to content

Commit

Permalink
Fix config type in RouteShorthandOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianValente committed Mar 11, 2024
1 parent c957be2 commit 28f8fec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/route.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { FastifyError } from '@fastify/error'
import { ConstraintStrategy } from 'find-my-way'
import { FastifyRequestContext } from './context'
import { FastifyContextConfig } from './context'
import { onErrorMetaHookHandler, onRequestAbortMetaHookHandler, onRequestMetaHookHandler, onResponseMetaHookHandler, onSendMetaHookHandler, onTimeoutMetaHookHandler, preHandlerMetaHookHandler, preParsingMetaHookHandler, preSerializationMetaHookHandler, preValidationMetaHookHandler } from './hooks'
import { FastifyInstance } from './instance'
import { FastifyBaseLogger, FastifyChildLoggerFactory, LogLevel } from './logger'
Expand Down Expand Up @@ -52,7 +52,7 @@ export interface RouteShorthandOptions<
serializerCompiler?: FastifySerializerCompiler<SchemaCompiler>;
bodyLimit?: number;
logLevel?: LogLevel;
config?: Omit<FastifyRequestContext<ContextConfig>['config'], 'url' | 'method'>;
config?: FastifyContextConfig & ContextConfig;
version?: string;
constraints?: RouteConstraint,
prefixTrailingSlash?: 'slash'|'no-slash'|'both';
Expand Down

0 comments on commit 28f8fec

Please sign in to comment.