File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed
Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -359,6 +359,15 @@ export interface LoadEvent<
359359 * ```
360360 */
361361depends ( ...deps : string [ ] ) : void ;
362+ /**
363+ * Info about the current route
364+ */
365+ route : {
366+ /**
367+ * The route ID of the current page - e.g. for `src/routes/blog/[slug]`, it would be `blog/[slug]`
368+ */
369+ id : string ;
370+ } ;
362371}
363372
364373export interface NavigationEvent <
@@ -369,7 +378,7 @@ export interface NavigationEvent<
369378 */
370379params : Params ;
371380/**
372- * More info about the route in question
381+ * Info about the current route
373382 */
374383route : {
375384/**
@@ -616,6 +625,15 @@ export interface ServerLoadEvent<
616625 * ```
617626 */
618627depends ( ...deps : string [ ] ) : void ;
628+ /**
629+ * Info about the current route
630+ */
631+ route : {
632+ /**
633+ * The route ID of the current page - e.g. for `src/routes/blog/[slug]`, it would be `blog/[slug]`
634+ */
635+ id : string ;
636+ } ;
619637}
620638
621639export interface Action <
You can’t perform that action at this time.
0 commit comments