@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.
@@ -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
@@ -2,7 +2,7 @@
2
2
  "name": "@koordinates/xstate-tree",
3
3
  "main": "lib/index.js",
4
4
  "types": "lib/xstate-tree.d.ts",
5
- "version": "5.1.0-next.2",
5
+ "version": "5.1.0-next.3",
6
6
  "license": "MIT",
7
7
  "description": "Build UIs with Actors using xstate and React",
8
8
  "keywords": [