@koordinates/xstate-tree 5.1.0-next.2 → 5.1.0-next.3
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.
- package/lib/xstate-tree.d.ts +7 -0
- package/package.json +1 -1
package/lib/xstate-tree.d.ts
CHANGED
|
@@ -496,6 +496,13 @@ export declare type RouteMeta<T> = T extends Route<any, any, any, infer TMeta> ?
|
|
|
496
496
|
*/
|
|
497
497
|
export declare type RouteParams<T> = T extends Route<infer TParams, any, any, any> ? TParams : undefined;
|
|
498
498
|
|
|
499
|
+
/**
|
|
500
|
+
* @public
|
|
501
|
+
*
|
|
502
|
+
* Extract query type from route
|
|
503
|
+
*/
|
|
504
|
+
export declare type RouteQuery<T> = T extends Route<any, infer TQuery, any, any> ? TQuery : undefined;
|
|
505
|
+
|
|
499
506
|
declare type RouteRedirect<TParams, TQuery, TMeta> = (args: MakeEmptyObjectPropertiesOptional<{
|
|
500
507
|
params: TParams;
|
|
501
508
|
query: TQuery;
|
package/package.json
CHANGED