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.1.26
Darwin 24.1.0 arm64 arm
I am using a separate file for handlers and using InferContext for type safety
export const TrackingModule = new Elysia() .use(services) .get("/", handleTrackingRedirect, { query: TrackingQuerySchema }) .post("/callback", handleCallback, { body: CallbackBodySchema });
export async function handleTrackingRedirect({ db, request, redirect, error, query: { campaign_id, inventory_id, url }, }: InferContext<typeof TrackingModule>) {} export async function handleCallback({ db, error, body: { clk_id, txn_id }, }: InferContext<typeof TrackingModule>) {}
It should infer the type of query and body but it is not doing so.
query
body
I am getting the type error for body in handler.
No
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.1.26
What platform is your computer?
Darwin 24.1.0 arm64 arm
What steps can reproduce the bug?
I am using a separate file for handlers and using InferContext for type safety
What is the expected behavior?
It should infer the type of
query
andbody
but it is not doing so.What do you see instead?
I am getting the type error for
body
in handler.Additional information
No
Have you try removing the
node_modules
andbun.lockb
and try again yet?Yes
The text was updated successfully, but these errors were encountered: