We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There seems to be something wrong with the handling of async function objects.
Steps to Reproduce
foo
const foo = async () => { };
Expected ts-type-expand displays the return type of foo as Promise<void>.
ts-type-expand
Promise<void>
Actual It displays this type as void.
void
Additional info const bar= async (): Promise<void> => { }; will be displayed as any.
const bar= async (): Promise<void> => { };
any
The text was updated successfully, but these errors were encountered:
Thanks for the report ! I was able to reproduce it by trying it in my environment. I'll fix it.
Sorry, something went wrong.
fixed in #99
#99 merged.
No branches or pull requests
There seems to be something wrong with the handling of async function objects.
Steps to Reproduce
foo
.Expected
ts-type-expand
displays the return type offoo
asPromise<void>
.Actual
It displays this type as
void
.Additional info
const bar= async (): Promise<void> => { };
will be displayed asany
.The text was updated successfully, but these errors were encountered: