@kitbag/router 0.5.3 → 0.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -134,7 +134,7 @@ export declare type ChildRouteProps = (WithComponent | WithComponents) & WithHoo
134
134
  /**
135
135
  * Path part of URL.
136
136
  */
137
- path: string | Path;
137
+ path?: string | Path;
138
138
  /**
139
139
  * Query (aka search) part of URL.
140
140
  */
@@ -264,7 +264,7 @@ declare type ExternalRouteChildProps = {
264
264
  /**
265
265
  * Path part of URL.
266
266
  */
267
- path: string | Path;
267
+ path?: string | Path;
268
268
  /**
269
269
  * Query (aka search) part of URL.
270
270
  */
@@ -291,7 +291,7 @@ declare type ExternalRouteParentProps = {
291
291
  /**
292
292
  * Path part of URL.
293
293
  */
294
- path: string | Path;
294
+ path?: string | Path;
295
295
  /**
296
296
  * Query (aka search) part of URL.
297
297
  */
@@ -591,7 +591,7 @@ export declare type ParentRouteProps = Partial<WithComponent | WithComponents> &
591
591
  /**
592
592
  * Path part of URL.
593
593
  */
594
- path: string | Path;
594
+ path?: string | Path;
595
595
  /**
596
596
  * Query (aka search) part of URL.
597
597
  */
@@ -1198,7 +1198,7 @@ declare type ToCallback = (resolve: RegisteredRouter['resolve']) => string;
1198
1198
 
1199
1199
  declare type ToHost<T extends string | Host> = T extends string ? Host<T, {}> : T;
1200
1200
 
1201
- declare type ToPath<T extends string | Path> = T extends string ? Path<T, {}> : T;
1201
+ declare type ToPath<T extends string | Path | undefined> = T extends string ? Path<T, {}> : T extends undefined ? Path<'', {}> : unknown extends T ? Path<'', {}> : T;
1202
1202
 
1203
1203
  declare type ToQuery<T extends string | Query | undefined> = T extends string ? Query<T, {}> : T extends undefined ? Query<'', {}> : unknown extends T ? Query<'', {}> : T;
1204
1204