Skip to content

Type error with Vue 2.7 #339

@rchl

Description

@rchl

Versions

  • 1.0

Describe the bug

Generic type 'CombinedVueInstance' requires 6 type argument(s).

Screenshot 2022-07-19 at 23 02 18

Expected behavior

No type error

Steps to reproduce

Steps:

  1. Use in a project that has Vue 2.7 in dependencies
  2. Type check the project

Your Environment

  • Device: -
  • OS: macos
  • Browser -
  • Version -

Additional context

CombinedVueInstance has additional argument SetupBindings in its type:

export type CombinedVueInstance<
  Instance extends Vue,
  Data,
  Methods,
  Computed,
  Props,
  SetupBindings
> = Data &
  Methods &
  Computed &
  Props &
  Instance &
  (SetupBindings extends void ? {} : SetupBindings)

I believe that CombinedVueInstance is considered internal by Vue so ideally it wouldn't be referenced directly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions