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
The type of the return value is omitted. #57868
Comments
Sure, I understand that. The 'any' type is not the problem I am bringing to your attention. If this is intentional, I have a very hard time accepting it. |
Your example errors unless you use |
However, I thought that:
Thank you for your answers and patience. |
If you want a type that means "any possible value" but is actually typesafe, you should use |
This will return an error, and that's how it's supposed to be:
BUT somehow I managed to add 'x' to number[]
(I entered 'value :any' on purpose, it's the only way to indicate the problem/incorrect operation.)
And in the console I have:
The text was updated successfully, but these errors were encountered: