We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08c1e23 commit 07f7c49Copy full SHA for 07f7c49
src/index.ts
@@ -86,15 +86,17 @@ ${await compile(
86
)}
87
${await generateReplyInterfaces(options.prefix, schema.response)}
88
89
-type ${options.prefix}Handler = RouteHandler<{
+type ${options.prefix}RouteGeneric = {
90
Querystring: ${options.prefix}Query;
91
Body: ${options.prefix}Body;
92
Params: ${options.prefix}Params;
93
Headers: ${options.prefix}Headers;
94
Reply: ${options.prefix}Reply;
95
-}>;
+}
96
+
97
+type ${options.prefix}Handler = RouteHandler<${options.prefix}RouteGeneric>;
98
-export { ${options.prefix}Handler, schema }\
99
+export { ${options.prefix}Handler, ${options.prefix}RouteGeneric, schema }\
100
`;
101
}
102
0 commit comments