Skip to content

Commit

Permalink
fix(hono): context add out type
Browse files Browse the repository at this point in the history
  • Loading branch information
anymaniax committed Apr 15, 2024
1 parent 48436f2 commit 39a1884
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/hono/src/index.ts
Expand Up @@ -477,7 +477,11 @@ const getContext = (verbOption: GeneratorVerbOptions) => {
verbOption.operationName,
)}Context<E extends Env = any> = Context<E, '${getRoute(
verbOption.pathRoute,
)}', ${hasIn ? `{ in: { ${paramType}${queryType}${bodyType} }}` : ''}>`;
)}'${
hasIn
? `, { in: { ${paramType}${queryType}${bodyType} }, out: { ${paramType}${queryType}${bodyType} } }`
: ''
}>`;
};

const getHeader = (
Expand Down

0 comments on commit 39a1884

Please sign in to comment.