Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Typescript] Can't use mixins with vue-property decorator #143

Open
NotHolst opened this issue Jul 16, 2021 · 0 comments
Open

[Typescript] Can't use mixins with vue-property decorator #143

NotHolst opened this issue Jul 16, 2021 · 0 comments

Comments

@NotHolst
Copy link

Here is the Vue component

<template>
  <tbody>
    {{
      $slots.default
    }}
  </tbody>
</template>

<script lang="ts">
import { Component, mixins } from 'nuxt-property-decorator'
import { ContainerMixin } from 'vue-slicksort'

@Component
export default class SlicksortTable extends mixins(ContainerMixin) {}
</script>

I get the following error at the mixins(...) part

No overload matches this call.
  Overload 1 of 7, '(CtorA: VueClass<unknown>): VueClass<unknown>', gave the following error.
    Argument of type 'Vue' is not assignable to parameter of type 'VueClass<unknown>'.
      Type 'Vue' is not assignable to type 'new (...args: any[]) => Vue'.
        Type 'Vue' provides no match for the signature 'new (...args: any[]): Vue'.
  Overload 2 of 7, '(...Ctors: VueClass<Vue>[]): VueClass<unknown>', gave the following error.
    Argument of type 'Vue' is not assignable to parameter of type 'VueClass<Vue>'.
      Type 'Vue' is not assignable to type 'new (...args: any[]) => Vue'.
        Type 'Vue' provides no match for the signature 'new (...args: any[]): Vue'.
  Overload 3 of 7, '(...Ctors: VueClass<Vue>[]): VueClass<Vue>', gave the following error.
    Argument of type 'Vue' is not assignable to parameter of type 'VueClass<Vue>'.
      Type 'Vue' is not assignable to type 'new (...args: any[]) => Vue'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant