wobsoriano / elysia-clerk

Unofficial Clerk plugin for Elysia.js.
MIT License
66 stars 3 forks source link

Typescript: How to correctly type `auth` #4

Closed GautierT closed 1 month ago

GautierT commented 7 months ago

Hey.

Thanks for this plugin. I created a isSignIn function that i use in beforeHandler. How to correctly type it to avoid this error ?

Thanks.

image
wobsoriano commented 4 months ago

It's a known problem with Elysia plugins when you use them on child Elysia apps.

See https://github.com/elysiajs/elysia/issues/566

wobsoriano commented 1 month ago

https://elysiajs.com/essential/scope#plugin