-
Notifications
You must be signed in to change notification settings - Fork 21
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not infer return type... #12
Comments
|
very fast...thank you |
Right, you need to be explicit about return type of function. In your case you'd need to tell it returns boolean even if it's obvious in function code. isExpensive(): boolean { // <-- `boolean` return type is explicit here and that's needed for typegql to know it
return this.price > 50;
} |
Doesnt the documentation show using implicit types?
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
first, I will thank you for this awesome package. 馃憤
Currently we are start a new project and would like to implement this package (and give you feedback, if you like).
I think I found the first bug 馃槈.
My code:
Errostack:
Is this a Bug, or what I'm doing wrong?
Thanks
The text was updated successfully, but these errors were encountered: