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

Unable to call class methods #3

Closed
dml0031 opened this issue Jul 25, 2024 · 2 comments
Closed

Unable to call class methods #3

dml0031 opened this issue Jul 25, 2024 · 2 comments
Assignees

Comments

@dml0031
Copy link

dml0031 commented Jul 25, 2024

Take example:

class Person extends Validated(schema) {
  input() {
   return this.name
  }
}

new Person({ name: "test" }).input()

It just returns an error that says TypeError: (intermediate value).input is not a function

Any help on this would be great!

takagiy added a commit that referenced this issue Jul 28, 2024
@takagiy
Copy link
Owner

takagiy commented Jul 28, 2024

@dml0031
I can't believe I missed this until you reported it to me. I really appreciate you.

Thanks to you, I think I've fixed the issue and now the class method should work.

@takagiy takagiy self-assigned this Jul 28, 2024
@dml0031
Copy link
Author

dml0031 commented Aug 10, 2024

Appreciate your response and quick fix! Thank you. Appears to be all good now!

@dml0031 dml0031 closed this as completed Aug 10, 2024
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