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

Fix ExtractComputedReturns in typescript ^3.9 #1205

Closed
wants to merge 1 commit into from

Conversation

ambyjkl
Copy link

@ambyjkl ambyjkl commented May 18, 2020

In typescript ^3.9, ReturnType behaves differently, which breaks ExtractComputedReturns:

Typescript Playground links:

3.9.2

3.8,3

The fix is to explicitly cast as a function signature type instead of Function, according to microsoft/TypeScript#34540. Here's another Playground link with the fix, no more red squigglies: Playground Link

@pikax
Copy link
Member

pikax commented May 18, 2020

Thank you

There's a PR for 3.9 with this fix.

#1106

@ambyjkl
Copy link
Author

ambyjkl commented May 19, 2020

Oh perfect, looks like i could've spent some time looking at open PRs, sorry 😅

@ambyjkl ambyjkl closed this May 19, 2020
@ambyjkl ambyjkl deleted the Ambyjkl-patch-1 branch May 19, 2020 20:03
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

Successfully merging this pull request may close these issues.

2 participants