Type definition: depends
missing in Kit.ServerLoadEvent
#6929
Labels
Milestone
depends
missing in Kit.ServerLoadEvent
#6929
Describe the bug
Kit.ServerLoadEvent
does not delare thedepends
function even though it exists on the object (and works)See
kit/packages/kit/types/index.d.ts
Lines 366 to 371 in 7a7f846
kit/packages/kit/types/index.d.ts
Lines 296 to 308 in 7a7f846
It should declare depends just like
LoadEvent
doeskit/packages/kit/types/index.d.ts
Line 257 in 7a7f846
Reproduction
https://stackblitz.com/edit/sveltekit-depends?file=src%2Froutes%2F%2Bpage.server.ts&terminal=dev
This example tries to use depends in a
PageServerLoad
function. Typescript shows an error:However, the code works (click the "Reload data" button) - it's only a type error.
Logs
No response
System Info
Severity
serious, but I can work around it
Additional Information
No response
The text was updated successfully, but these errors were encountered: