Skip to content

Commit a9e1c7d

Browse files
committed
fix: correct parameter type in routeconstraints decorator
1 parent 59ef06a commit a9e1c7d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/platform-fastify/decorators/route-constraints.decorator.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ import { RouteShorthandOptions } from 'fastify';
77
*
88
* @param config See {@link https://fastify.dev/docs/latest/Reference/Routes/#constraints}
99
*/
10-
export const RouteConstraints = (config: RouteShorthandOptions['config']) =>
11-
SetMetadata(FASTIFY_ROUTE_CONSTRAINTS_METADATA, config);
10+
export const RouteConstraints = (
11+
config: RouteShorthandOptions['constraints'],
12+
) => SetMetadata(FASTIFY_ROUTE_CONSTRAINTS_METADATA, config);

0 commit comments

Comments
 (0)