__error generated types should use ErrorLoad
instead of Load
.
#4398
Labels
bug
Something isn't working
p1-important
SvelteKit cannot be used by a large number of people, basic functionality is missing, etc.
types / typescript
Milestone
Describe the bug
The types generated at
./.sveltekit/types/src/routes/__error.d.ts
by Sveltekit use the genericLoad
function type instead of theErrorLoad
type, which causes errors to show up when using theerror
andstatus
parameters in the function.Reproduction
https://github.com/f-elix/sveltekit-generated-types-error
You can open this repo in vscode to see the errors in
__error.svelte
.npm run check
will also display the errors in the terminal.Logs
No response
System Info
Severity
annoyance
Additional Information
I can use the
ErrorLoad
type provided by Sveltekit to work around that.The text was updated successfully, but these errors were encountered: