@koordinates/xstate-tree 4.5.0 → 4.6.0

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.
@@ -635,6 +635,13 @@ export declare type RouteMeta<T> = T extends Route<any, any, any, infer TMeta> ?
635
635
  */
636
636
  export declare type RouteParams<T> = T extends Route<infer TParams, any, any, any> ? TParams : undefined;
637
637
 
638
+ /**
639
+ * @public
640
+ *
641
+ * Extract query type from route
642
+ */
643
+ export declare type RouteQuery<T> = T extends Route<any, infer TQuery, any, any> ? TQuery : undefined;
644
+
638
645
  declare type RouteRedirect<TParams, TQuery, TMeta> = (args: MakeEmptyObjectPropertiesOptional<{
639
646
  params: TParams;
640
647
  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": "4.5.0",
5
+ "version": "4.6.0",
6
6
  "license": "MIT",
7
7
  "description": "Build UIs with Actors using xstate and React",
8
8
  "keywords": [