From 2d392cdb00fd93fe4918de7267c50958f4fbc8df Mon Sep 17 00:00:00 2001 From: Huynh Duc Dung Date: Sat, 9 Dec 2023 11:37:57 +0800 Subject: [PATCH] chore: ignore ts error from plugins --- server/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/index.ts b/server/index.ts index acb7e7c..b2d08b1 100644 --- a/server/index.ts +++ b/server/index.ts @@ -11,7 +11,7 @@ const port = process.env.PORT ?? 3000; const app = new Elysia() .use(staticPlugin()) .use( - // @ts-expect-error Type error from swagger plugin + // @ts-expect-error No overload matches this call. swagger({ documentation: { info: { @@ -26,8 +26,9 @@ const app = new Elysia() }, }), ) + // @ts-expect-error No overload matches this call. .use(cors()) - .get("/hello", () => "Hello Elysia", { + .get("/", () => "Hello Elysia", { response: t.String({ description: "Returns a string", }),