You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Subset / duplicate of #647. There's a similar proposal in one of the comments. Feel free to add your thoughts in this issue instead. We will look at this in a holistic manner once we are sure the rest of SvelteKit is in a stable place.
Describe the problem
if you have the following endpoint
and you try to fetch the endpoint
the return object from
data.json()
should have the typeDescribe the proposed solution
like for the Load and the RequestHandler type, you could generate another file, which overrides the type for the fetch function
and then reference this file in
app.d.ts
And to know what the types are for the endpoint you could just export them in the endpoints and import then in the
fetch.d.ts
fileAlternatives considered
No response
Importance
would make my life easier
Additional Information
No response
The text was updated successfully, but these errors were encountered: