-
Notifications
You must be signed in to change notification settings - Fork 541
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
Better typed fetch
/$fetch
#2758
Comments
Improving fetch types would be an immense QOL improvement. I for one am very excited about this and am looking forward to more info as y'all push forward with it. |
Will this also type And will this support alternative serializer to maintain type safety similiar to https://nuxt.com/docs/getting-started/data-fetching#using-an-alternative-serializer? |
Is this still planned? To my knowledge, it's one of the things gating Nuxt 4 |
Context, work, and explanation by @danielroe: #1532
We are thinking of improving (auto-generated) typed fetch. This requires adopting a new standard/reusable type utility for fetch, which @danielroe is working on. By using the new layer, we can improve performance and consistency and adopt it in several places instead of directly being in nitro core (benefiting nuxt, and in the next steps ofetch and h3 typed fetch support.)
Relevant linked issues: (some might be doable in next steps)
$fetch
infered type forDate
is wrong #2689server
option doesn't exist for generic form of $fetch #1937Excessive stack depth comparing types
when trying to wrap$fetch
#470The text was updated successfully, but these errors were encountered: