Skip to content

Commit

Permalink
feat: export RouteGeneric
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasthiebaud committed Sep 22, 2020
1 parent 08c1e23 commit 07f7c49
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,17 @@ ${await compile(
)}
${await generateReplyInterfaces(options.prefix, schema.response)}
type ${options.prefix}Handler = RouteHandler<{
type ${options.prefix}RouteGeneric = {
Querystring: ${options.prefix}Query;
Body: ${options.prefix}Body;
Params: ${options.prefix}Params;
Headers: ${options.prefix}Headers;
Reply: ${options.prefix}Reply;
}>;
}
type ${options.prefix}Handler = RouteHandler<${options.prefix}RouteGeneric>;
export { ${options.prefix}Handler, schema }\
export { ${options.prefix}Handler, ${options.prefix}RouteGeneric, schema }\
`;
}

Expand Down

0 comments on commit 07f7c49

Please sign in to comment.