Skip to content

Commit

Permalink
chore: ignore ts error from plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
jellydn committed Dec 9, 2023
1 parent 4ae758d commit 2d392cd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -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",
}),
Expand Down

0 comments on commit 2d392cd

Please sign in to comment.