Skip to content

Commit

Permalink
Fix typecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
jmurzy authored Nov 6, 2024
1 parent 37c3ddd commit 2385f2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/use/koa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export function createHandler<Context extends OperationContext = undefined>(
body: () => {
if (ctx.request.body) {

Check failure on line 123 in src/use/koa.ts

View workflow job for this annotation

GitHub Actions / deno

Property 'body' does not exist on type 'Request'.

Check failure on line 123 in src/use/koa.ts

View workflow job for this annotation

GitHub Actions / Check type

Property 'body' does not exist on type 'Request'.
// in case koa has a body parser
return ctx.request.body as any;
return ctx.request.body as Record<string, unknown>;

Check failure on line 125 in src/use/koa.ts

View workflow job for this annotation

GitHub Actions / deno

Property 'body' does not exist on type 'Request'.

Check failure on line 125 in src/use/koa.ts

View workflow job for this annotation

GitHub Actions / Check type

Property 'body' does not exist on type 'Request'.
}
return new Promise<string>((resolve) => {
let body = '';
Expand Down

0 comments on commit 2385f2d

Please sign in to comment.