Skip to content

Commit 07f7c49

Browse files
feat: export RouteGeneric
1 parent 08c1e23 commit 07f7c49

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/index.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,17 @@ ${await compile(
8686
)}
8787
${await generateReplyInterfaces(options.prefix, schema.response)}
8888
89-
type ${options.prefix}Handler = RouteHandler<{
89+
type ${options.prefix}RouteGeneric = {
9090
Querystring: ${options.prefix}Query;
9191
Body: ${options.prefix}Body;
9292
Params: ${options.prefix}Params;
9393
Headers: ${options.prefix}Headers;
9494
Reply: ${options.prefix}Reply;
95-
}>;
95+
}
96+
97+
type ${options.prefix}Handler = RouteHandler<${options.prefix}RouteGeneric>;
9698
97-
export { ${options.prefix}Handler, schema }\
99+
export { ${options.prefix}Handler, ${options.prefix}RouteGeneric, schema }\
98100
`;
99101
}
100102

0 commit comments

Comments
 (0)