Skip to content

Computed properties context broken if prop with type array exist [TypeScript] #8421

Closed
@ondrej-janosik

Description

@ondrej-janosik

Version

2.5.16

Reproduction link

https://github.com/ondrej-janosik/vue-bug-props/blob/master/src/App.vue

Steps to reproduce

  1. Create a new project with VUE CLI, just add typescript
    image
  2. Open is VS code
  3. Create a property in data in App.vue
    image
  4. Access this property in a computed method - works
    image
  5. Add prop with type array
    image
  6. Computed property context is broken - not work
    image
  7. Change prop type to for example to object - works
    image

What is expected?

A computed property should have the same context even if prop with type array is presented

What is actually happening?

Computed property context is missing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions