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

[JavaScript] Required support for TSX const generics #4112

Closed
MrFoxPro opened this issue Dec 8, 2024 · 0 comments · Fixed by #4114
Closed

[JavaScript] Required support for TSX const generics #4112

MrFoxPro opened this issue Dec 8, 2024 · 0 comments · Fixed by #4114
Labels
C: Syntax T: bug A bug in an existing language feature

Comments

@MrFoxPro
Copy link

MrFoxPro commented Dec 8, 2024

export let useRouter = <const R extends Routes = {}>() => useContext(RouterContext as SolidContext<RouterContext<R>>)
// fails all the way down

microsoft/TypeScript#51865

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: Syntax T: bug A bug in an existing language feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants