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

Provide metadata for the dependent keys of computed properties #26

Open
suchitadoshi1987 opened this issue Dec 20, 2019 · 1 comment
Open

Comments

@suchitadoshi1987
Copy link
Contributor

Currently, we get information about the list of computedProperties for a given file, it would be great to have some more info regarding the dependentKeys for that particular computed property.
Proposal:
We can have the computedProperties to be an array of objects:

{
  "computedProperties": [
    {
      "propertyName": "fullName",
      "dependentKeys": [
        "firstName",
        "lastName"
      ]
    }
  ]
}

OR

as a map

{
  "computedProperties": {
    "fullName": [
      "firstName",
      "lastName"
    ]
  }
}

@rajasegar
Copy link
Member

I prefer the array of objects, it suits more for multiple properties

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

2 participants