File tree Expand file tree Collapse file tree 2 files changed +18
-8
lines changed Expand file tree Collapse file tree 2 files changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -990,7 +990,7 @@ export interface NavigationEvent<
990
990
*/
991
991
route : {
992
992
/**
993
- * The ID of the current route - e.g. for `src/routes/blog/[slug]`, it would be `/blog/[slug]`
993
+ * The ID of the current route - e.g. for `src/routes/blog/[slug]`, it would be `/blog/[slug]`. It is `null` when no route is matched.
994
994
*/
995
995
id : RouteId ;
996
996
} ;
@@ -1012,7 +1012,12 @@ export interface NavigationTarget {
1012
1012
/**
1013
1013
* Info about the target route
1014
1014
*/
1015
- route : { id : string | null } ;
1015
+ route : {
1016
+ /**
1017
+ * The ID of the current route - e.g. for `src/routes/blog/[slug]`, it would be `/blog/[slug]`. It is `null` when no route is matched.
1018
+ */
1019
+ id : string | null ;
1020
+ } ;
1016
1021
/**
1017
1022
* The URL that is navigated to
1018
1023
*/
@@ -1129,7 +1134,7 @@ export interface Page<
1129
1134
*/
1130
1135
route : {
1131
1136
/**
1132
- * The ID of the current route - e.g. for `src/routes/blog/[slug]`, it would be `/blog/[slug]`.
1137
+ * The ID of the current route - e.g. for `src/routes/blog/[slug]`, it would be `/blog/[slug]`. It is `null` when no route is matched.
1133
1138
*/
1134
1139
id : RouteId ;
1135
1140
} ;
@@ -1205,7 +1210,7 @@ export interface RequestEvent<
1205
1210
*/
1206
1211
route : {
1207
1212
/**
1208
- * The ID of the current route - e.g. for `src/routes/blog/[slug]`, it would be `/blog/[slug]`.
1213
+ * The ID of the current route - e.g. for `src/routes/blog/[slug]`, it would be `/blog/[slug]`. It is `null` when no route is matched.
1209
1214
*/
1210
1215
id : RouteId ;
1211
1216
} ;
Original file line number Diff line number Diff line change @@ -972,7 +972,7 @@ declare module '@sveltejs/kit' {
972
972
*/
973
973
route : {
974
974
/**
975
- * The ID of the current route - e.g. for `src/routes/blog/[slug]`, it would be `/blog/[slug]`
975
+ * The ID of the current route - e.g. for `src/routes/blog/[slug]`, it would be `/blog/[slug]`. It is `null` when no route is matched.
976
976
*/
977
977
id : RouteId ;
978
978
} ;
@@ -994,7 +994,12 @@ declare module '@sveltejs/kit' {
994
994
/**
995
995
* Info about the target route
996
996
*/
997
- route : { id : string | null } ;
997
+ route : {
998
+ /**
999
+ * The ID of the current route - e.g. for `src/routes/blog/[slug]`, it would be `/blog/[slug]`. It is `null` when no route is matched.
1000
+ */
1001
+ id : string | null ;
1002
+ } ;
998
1003
/**
999
1004
* The URL that is navigated to
1000
1005
*/
@@ -1111,7 +1116,7 @@ declare module '@sveltejs/kit' {
1111
1116
*/
1112
1117
route : {
1113
1118
/**
1114
- * The ID of the current route - e.g. for `src/routes/blog/[slug]`, it would be `/blog/[slug]`.
1119
+ * The ID of the current route - e.g. for `src/routes/blog/[slug]`, it would be `/blog/[slug]`. It is `null` when no route is matched.
1115
1120
*/
1116
1121
id : RouteId ;
1117
1122
} ;
@@ -1187,7 +1192,7 @@ declare module '@sveltejs/kit' {
1187
1192
*/
1188
1193
route : {
1189
1194
/**
1190
- * The ID of the current route - e.g. for `src/routes/blog/[slug]`, it would be `/blog/[slug]`.
1195
+ * The ID of the current route - e.g. for `src/routes/blog/[slug]`, it would be `/blog/[slug]`. It is `null` when no route is matched.
1191
1196
*/
1192
1197
id : RouteId ;
1193
1198
} ;
You can’t perform that action at this time.
0 commit comments