Skip to content

Commit 2385f2d

Browse files
authored
Fix typecheck
1 parent 37c3ddd commit 2385f2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/use/koa.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export function createHandler<Context extends OperationContext = undefined>(
122122
body: () => {
123123
if (ctx.request.body) {
124124
// in case koa has a body parser
125-
return ctx.request.body as any;
125+
return ctx.request.body as Record<string, unknown>;
126126
}
127127
return new Promise<string>((resolve) => {
128128
let body = '';

0 commit comments

Comments
 (0)