Skip to content

Commit

Permalink
chore: fix TS issues after bump to 5.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkdev98 committed Jun 7, 2023
1 parent d84456e commit 55df944
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 163 deletions.
161 changes: 0 additions & 161 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/code-gen/src/open-api/generator.js
Expand Up @@ -204,6 +204,7 @@ function openApiTransformParams(generateContext, openApiSpec, route) {
break;

case "reference":
// @ts-expect-error
schema = transformType(generateContext, openApiSpec, param);

break;
Expand Down
4 changes: 2 additions & 2 deletions packages/server/src/middleware/log.js
Expand Up @@ -162,8 +162,8 @@ class StreamLength extends Transform {
*/
function bodyCloseOrFinish(ctx) {
return new Promise((resolve) => {
const onFinish = done.bind(null, "finish");
const onClose = done.bind(null, "close");
const onFinish = done.bind(null);
const onClose = done.bind(null);

ctx.body.once("finish", onFinish);
ctx.body.once("close", onClose);
Expand Down

0 comments on commit 55df944

Please sign in to comment.