Is it possible to keep type safety in ElysiaJS when using seperate route files, espcially when using plugins(JWT)? #1116
Answered
by
mtt-artis
heinergiehl
asked this question in
Q&A
-
Hi Guys, I wonder whether there is an elegant inbuilt solution to guarantee typesafety when using plugins like |
Beta Was this translation helpful? Give feedback.
Answered by
mtt-artis
Mar 8, 2025
Replies: 1 comment 4 replies
-
Please just follow best-practice there no real cases im useless separating which break type safety and force u to do a much more work |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👋
You need to add jwt on every Elysia instance where jwt is need for type inference, Elysia will handle the deduplication for you.
https://elysiajs.com/essential/plugin#plugin-deduplication