Typescript loses the middlewares of the packages when a middleware is created in the middleware folder.
If you create a middleware in /middleware typescript no longer knows authjs-nuxt's middlewares (but it still works, types are probably overrode instead of augmented)
Environment
Reproduction
https://github.com/Shhu/auth-nuxt-repro-signin-return/blob/main/pages/middlewareIssue.vue
Describe the bug
Typescript loses the middlewares of the packages when a middleware is created in the middleware folder.
If you create a middleware in
/middleware
typescript no longer knows authjs-nuxt's middlewares (but it still works, types are probably overrode instead of augmented)Additional context
No response
Logs
No response