jd-solanki / anu

Anu - DX focused utility based vue component library built on top of UnoCSS & VueUse ⚡️🔥
https://anu-vue.netlify.app/
MIT License
1.04k stars 56 forks source link

typescript types error? #221

Open QC2168 opened 10 months ago

QC2168 commented 10 months ago

An error occurred while executing app.use(anu)

Excessive stack depth comparing types '{ install(app: App<any>, options?: PartialObjectDeep<PluginOptions, {}> | undefined): void; }' and 'Plugin<[]>'.ts(2321)
// main.ts
createApp(App).use(anu).use(pinia).mount('#app')
// pkg.json
{
   "anu-vue": "^0.15.2"
}
whylifeisface commented 8 months ago

app.use(anu as any) it seems work

SoCuul commented 8 months ago

+1 it would be nice not to have to use the any type in this instance