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

Generic arrow functions not working correctly #239

Open
phelipetls opened this issue Feb 21, 2021 · 1 comment
Open

Generic arrow functions not working correctly #239

phelipetls opened this issue Feb 21, 2021 · 1 comment
Labels
ArrowFunc The fundamental difficulty

Comments

@phelipetls
Copy link
Contributor

This works correctly:

let a = <T>( a: T ) => {
}

But this does not:

let a = <T extends Record<string, any>>( a: T ) => {
}
@phelipetls
Copy link
Contributor Author

Sorry, this only happens with .tsx files...

@HerringtonDarkholme HerringtonDarkholme added the ArrowFunc The fundamental difficulty label Feb 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ArrowFunc The fundamental difficulty
Projects
None yet
Development

No branches or pull requests

2 participants