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

Enable single return statement type inference in slow types #459

Open
lucacasonato opened this issue Apr 26, 2024 · 2 comments
Open

Enable single return statement type inference in slow types #459

lucacasonato opened this issue Apr 26, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@lucacasonato
Copy link
Member

Isolated declarations now allows this: https://www.typescriptlang.org/play/?isolatedDeclarations=true&ts=5.5.0-beta#code/KYDwDg9gTgLgBAMwK4DsDGMCWEVwIYDOAJgBQCUcA3gFBx1xTAxJS4CMA3NQL5A

@dsherret
Copy link
Member

Don't we already do this?

@lucacasonato
Copy link
Member Author

lucacasonato commented Apr 28, 2024

No, only for arrow functions that have an expression rather than a block as a body

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants