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

ErrorInfo interface refers also the methods and not only field. #71

Open
noam-honig opened this issue May 31, 2022 · 0 comments
Open

ErrorInfo interface refers also the methods and not only field. #71

noam-honig opened this issue May 31, 2022 · 0 comments
Labels

Comments

@noam-honig
Copy link
Collaborator

Describe the bug
The ErrorInfo's modelState property includes references to the objects fields, but also to the object's methods.

To Reproduce
Consider the following class:

class person{
  firstName='';
  lastName='';
  getFullName(){
  return this.firstName+' '+this.lastName
  }
}

Expected behavior
A clear and concise description of what you expected to happen.
When I use the ErrorInfo type with it, it should only include firstName and lastName - and not - getFullName

Screenshots
If applicable, add screenshots to help explain your problem.
image
The getFullName shouldn't appear in the intelisense

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

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

No branches or pull requests

2 participants