Skip to content

Commit 39a1884

Browse files
committedApr 15, 2024
fix(hono): context add out type
1 parent 48436f2 commit 39a1884

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎packages/hono/src/index.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,11 @@ const getContext = (verbOption: GeneratorVerbOptions) => {
477477
verbOption.operationName,
478478
)}Context<E extends Env = any> = Context<E, '${getRoute(
479479
verbOption.pathRoute,
480-
)}', ${hasIn ? `{ in: { ${paramType}${queryType}${bodyType} }}` : ''}>`;
480+
)}'${
481+
hasIn
482+
? `, { in: { ${paramType}${queryType}${bodyType} }, out: { ${paramType}${queryType}${bodyType} } }`
483+
: ''
484+
}>`;
481485
};
482486

483487
const getHeader = (

0 commit comments

Comments
 (0)
Please sign in to comment.