Nesting server side functions in namespaces or any kind of block of code.
Is there any way to make nested server functions for example I would like to have an namespace called Users and then I could use
, but I get an error:
.all() or .query() server-side function. It would make my code much cleaner after all. I tried to implement the namespaces like so:Library database code
src/lib/db.tsExample usage
src/routes/index.tsx, but I get an error:
^ Server Functions cannot be nested in other blocks or functions. Is there aby other way to make it cleaner?