Skip to content

Elysia's type inference failed after using Logestic. #41

@chikazin

Description

@chikazin

What version of Logestic are you using?

^1.2.4

What is the bug and how to reproduce it?

easy to reproduce

import { Logestic } from "logestic";
const app = new Elysia()
  .use(staticPlugin())
  // .use(Logestic.preset("common")) // 👈 uncomment and comment , then you can see the Elysia app's type inference failed.
  .get("/", () => "hi",)
  .listen(3000);

What is the expected behaviour?

Elysia app's type inference keeps

Any additional information/media?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions