3 ms·
Not very good. The type safety thing doesn't work well when you are using it across different folders.
by ilrwbwrkhv 1y ago
Not very good. The type safety thing doesn't work well when you are using it across different folders.
- tough 1y agowhat do you mean by across different folders here? I was thinking about using elysiajs so this seems important
- tough 1y agowould this hack help? https://stackoverflow.com/questions/79494287/is-it-possible-to-keep-type-safety-in-elysiajs-when-using-seperate-route-files https://stackoverflow.com/questions/79494287/is-it-possible-...
- ilrwbwrkhv 1y agoI would reconsider using Elysia. I was also very excited by it and I thought it would be great but it has got errors and issues with different library versions and things like that. Also the whole Eden thing doesn't work for me for whatever reason. I have a monorepo. Typescript keeps complaining. Also if everything is defined in a single file, then it works well. If it's in different files, it breaks the whole type side of things.
- root_axis 1y agoHuh? It works fine across different modules. It helps to read the documentation thoroughly. I don't mean that to sound snarky, but it's likely you missed something if you're not able to modularize your route types.