vueuse/vue-demi

Incompatible when using App type in nuxt3

unicape opened this issue · 1 comments

nuxt3 plugins/use.ts

import MyCode from 'my-code'

export default defineNuxtPlugin((nuxtApp) => {
  const myCode = new MyCode()
  nuxtApp.vueApp.use(myCode)
})

myCode

import { App } from 'vue-demi';

export MyCode {
    install(app: App): void;
}

error info ⬇️

Types of property 'install' are incompatible.
       Type '(app: App<any>) => void' is not assignable to type 'PluginInstallFunction'.
         The types of parameters 'app' and 'app' are incompatible.
antfu commented

We temporarily close this due to the lack of enough information.
Please provide a minimal reproduction to reopen the issue.
Thanks.

Why reproduction is required