When I include a plugin in my NuxtApp, it correctly identifies its type.
https://i.stack.imgur.com/UFqZW.png
However, when I attempt to use the plugin on a page, it only displays the type as "any." https://i.stack.imgur.com/hVSzA.png
Is there a way for me to manually add types to extend the NuxtApp type? How can I make sure it recognizes the correct type of the plugin?
I was considering something like this:
import type { order } from '~/plugins/order'
interface PluginsInjections {
$order: ReturnType<order>
}
declare global {
interface NuxtApp extends PluginsInjections {}
}