Reinier Kaper
Reinier Kaper
Any timeline on this? Auto-imports is a fundamental feature of Nuxt 3, so without it, this module is virtually useless at the moment.
We encounter a very similar issue, where the global state is changed before the redirect, causing some UI flashing (certain colors/UI element change because they rely on some global state...
Not really. We're just looking for specifying the actual types in SessionData. Instead of just primitives, we actually want to use certain enums that our backend returns. On Fri, Jun...
In the end, you guys just generate a `auth.d.ts` with an exported interface, so it might be much easier to just provide the interface/type in the config, instead of manually...
I haven't, but that's actually a good idea. I'll take a look and remove my workaround to see if that's the most elegant solution (and/or if it yields any issues)....
> Yeah, it makes sense. I think it might already be possible, have you tried augmenting `#auth`? > > // auth-types.d.ts > declare module '#auth' { > interface SessionData {...
Okay I just retried with the following interface and I think it's working: ```ts import type { UseAuthentication } from '~/types/rental-api-aliases' declare module '#auth' { type SessionData = UseAuthentication }...
Oh no I spoke too soon, I casted my type in my composable where I use `useAuth`. Here's an example of the problem: As you can see, the country is...
~~Ah boy, the module was renamed from `@nuxt` to `@nuxtjs` namespace but the docs haven't updated properly I think?~~
Okay, apparently this isn't supposed to be used with Nuxt3, which leads me to the original problem I'm experiencing: When using `@nuxt/eslint-config` and you have a TS and JS project,...