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
Single fetch: loader type us unknown #9330
Comments
Try to add |
@rphlmr thanks, it works using types with Probably we should update docs: https://remix.run/docs/en/main/guides/single-fetch#type-inference Not sure why includes doesn't work the same way. |
From the docs:
|
Looks like we chose |
Looks like moving it from |
Did a quick test of this with @pcattori and it seems the original issue was a combination of using Moving to use @MarkoH17 we did not have any issues using |
Reproduction
https://github.com/ziimakc/types_error_remix
System Info
Used Package Manager
pnpm
Expected Behavior
For
const xxx = useLoaderData<typeof loader>()
xxx type should be{ message: string }
Actual Behavior
For
const xxx = useLoaderData<typeof loader>()
xxx type isunknown
The text was updated successfully, but these errors were encountered: