We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88a7fea commit 138b431Copy full SHA for 138b431
packages/code-gen/src/router/js-koa.js
@@ -415,7 +415,11 @@ type _Context = import("koa").ParameterizedContext<{}, {
415
fileBlockEnd(file);
416
}
417
418
- fileWrite(file, `await ${group}Handlers.${route.name}(ctx as any);`);
+ if (file.relativePath.endsWith(".ts")) {
419
+ fileWrite(file, `await ${group}Handlers.${route.name}(ctx as any);`);
420
+ } else {
421
+ fileWrite(file, `await ${group}Handlers.${route.name}(ctx);`);
422
+ }
423
424
if (route.response) {
425
fileWrite(
0 commit comments