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

Declaring an array property breaks intellisense scoping for typescript and javascript #1295

Closed
3 tasks done
Nonary opened this issue May 15, 2019 · 1 comment
Closed
3 tasks done

Comments

@Nonary
Copy link

Nonary commented May 15, 2019

  • I have searched through existing issues
  • I have read through docs
  • I have read FAQ

Info

  • Platform:
  • Vetur version: 0.21.0
  • VS Code version: 1.33.1

Problem

When declaring a property in Vue, if you specify that the type is an Array, Vetur will no longer recognize your data class and provide no suggestions. On Typescript it will error out stating it does not exist

Reproducible Case

Create any vue project and declare a property that has an Array type

props: {
test: Array
}

@octref
Copy link
Member

octref commented May 15, 2019

Duplicate of #1242, upstream vuejs/vue#9935.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants