-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
TypeScript: useLoaderData is not working properly in 2.9 #9295
Comments
Yep. Works on 2.8 just fine. |
Sorry for not deleting comment in time. Yea, turns out it was my mistake. |
Sorry about this folks! It looks like our TS build is accidentally picking up on the |
We just published |
2.9.1-pre.0 worked for me. Thanks @brophdawg11 |
Fixes the issue here! |
@merthanmerter Could you provide a reproduction of your issue? |
This should be resolved in Remix 2.9.1. Please provide minimal reproductions if you're still seeing any type inference issues! |
Its working with 2.9.1. |
Reproduction
https://stackblitz.com/edit/remix-run-remix-yartxj?file=app%2Froutes%2F_index.tsx
System Info
Used Package Manager
npm
Expected Behavior
Return value should be fully typed like in 2.8
Actual Behavior
For this simple installation, the returned value is typed as any.
I've also checked case with single fetch included in the
include
key in mytsconfig.json
file. In this case, the returned value wasunknown
The text was updated successfully, but these errors were encountered: