#Provided variables in Nuxt3 have no types

4 messages · Page 1 of 1 (latest)

bitter saffron
#

As the title explains, when I try providing a variable, in this case auth, to the NuxtApp, it's type is "any" whenever I try to access it via useNuxtApp(). It there any way to actually get types working here?

bitter saffron
#

Bump

azure yarrow
#

provide<T>, inject<T>

#

const { $auth } : Auth = useNuxtApp() have you tried something such as this?