What version of Elysia is running?
1.4.15
What platform is your computer?
Darwin 25.1.0 arm64 arm
What steps can reproduce the bug?
Create a plugin that uses the jwt plugin and pass a zod schema to the options.
export const cookie = () => new Elysia({ name: Name.Cookie }).use(jwt({ secret: process.env.COOKIE_SECRET, schema: CookieVerify.schema }))
What is the expected behavior?
It would be nice to have the whole ecosystem accept other validation libraries like on the main Elysia instance.
What do you see instead?
Type 'ZodObject<{ id: ZodString; }, $strip>' is missing the following properties from type 'TSchema': params, static, [Kind]ts(2739)
index.d.ts(145, 5): The expected type comes from property 'schema' which is declared here on type 'JWTOption<"jwt", TSchema | undefined>'
Additional information
No response
Have you try removing the node_modules and bun.lockb and try again yet?
Yes
What version of Elysia is running?
1.4.15
What platform is your computer?
Darwin 25.1.0 arm64 arm
What steps can reproduce the bug?
Create a plugin that uses the jwt plugin and pass a zod schema to the options.
export const cookie = () => new Elysia({ name: Name.Cookie }).use(jwt({ secret: process.env.COOKIE_SECRET, schema: CookieVerify.schema }))What is the expected behavior?
It would be nice to have the whole ecosystem accept other validation libraries like on the main Elysia instance.
What do you see instead?
Type 'ZodObject<{ id: ZodString; }, $strip>' is missing the following properties from type 'TSchema': params, static, [Kind]ts(2739)
index.d.ts(145, 5): The expected type comes from property 'schema' which is declared here on type 'JWTOption<"jwt", TSchema | undefined>'
Additional information
No response
Have you try removing the
node_modulesandbun.lockband try again yet?Yes