We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.2.9
Darwin 24.2.0 arm64 arm
import { Elysia, error, redirect, StatusMap, t } from "elysia"; import { swagger } from "@elysiajs/swagger"; const SYSTEM_UPLOAD_ROUTE = "/system/files"; export const uploadResponse = t.Object({ id: t.String(), }); export const router = new Elysia({ aot: false }) .use(swagger()) .post( SYSTEM_UPLOAD_ROUTE, async ({ request, query }) => { return { id: crypto.randomUUID(), }; }, { response:{ 200: uploadResponse } } );
When the 'response' is present, the type of request is `any. If you remove it, then the type is now correctly Response. See attached screenshots.
Correct type inference of the request etc.
The request is typed as any
any
No response
node_modules
bun.lockb
yes
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What version of Elysia is running?
1.2.9
What platform is your computer?
Darwin 24.2.0 arm64 arm
What steps can reproduce the bug?
When the 'response' is present, the type of request is `any. If you remove it, then the type is now correctly Response. See attached screenshots.
What is the expected behavior?
Correct type inference of the request etc.
What do you see instead?
The request is typed as
any
Additional information
No response
Have you try removing the
node_modules
andbun.lockb
and try again yet?yes
The text was updated successfully, but these errors were encountered: