-
Notifications
You must be signed in to change notification settings - Fork 202
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
Get return type from ArrowFunction #1887
Comments
You code looks reasonable and it would be nice if this worked. Looks like there is a bug somewhere. Can you help fix it? |
I upgraded function support significantly in #1910. Please send a pull request to add return values. |
I needed this functionality as well and was able to get it working using a custom parser. Haven't fully tested it yet but maybe this helps someone else. It uses the ts.TypeChecker to resolve the actual type and the parser itself to create the Json type.
|
I want to get the return type of an arrow function. Is it possible?
Here is my sample code
I'm using a simple configuration as following
It prints this output
I was expecting to get something like this.
The text was updated successfully, but these errors were encountered: