We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59ef06a commit a9e1c7dCopy full SHA for a9e1c7d
packages/platform-fastify/decorators/route-constraints.decorator.ts
@@ -7,5 +7,6 @@ import { RouteShorthandOptions } from 'fastify';
7
*
8
* @param config See {@link https://fastify.dev/docs/latest/Reference/Routes/#constraints}
9
*/
10
-export const RouteConstraints = (config: RouteShorthandOptions['config']) =>
11
- SetMetadata(FASTIFY_ROUTE_CONSTRAINTS_METADATA, config);
+export const RouteConstraints = (
+ config: RouteShorthandOptions['constraints'],
12
+) => SetMetadata(FASTIFY_ROUTE_CONSTRAINTS_METADATA, config);
0 commit comments