I'm using auto-imports in a Vue project, and while it works perfectly in vue components, I'm having issues with types in .ts files (like composables or stores).
In .ts file without import/export, the Ref (or other types) are unknown, but the ref() etc. functions are not reported.
It works only when using globalThis (globalThis.Ref)
Describe the bug
I'm using auto-imports in a Vue project, and while it works perfectly in vue components, I'm having issues with types in
.ts
files (like composables or stores)..ts
file without import/export, theRef
(or other types) are unknown, but theref()
etc. functions are not reported.globalThis.Ref
)Reproduction
https://github.com/Ericlm/vue-unplugin-auto-import
System Info
Used Package Manager
npm
Validations