@real-router/types 0.19.0 → 0.20.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.
@@ -649,6 +649,7 @@ interface PluginApi {
649
649
  getTree: () => unknown;
650
650
  getForwardState: () => <P extends Params = Params>(routeName: string, routeParams: P) => SimpleState<P>;
651
651
  setForwardState: (fn: <P extends Params = Params>(routeName: string, routeParams: P) => SimpleState<P>) => void;
652
+ addBuildPathInterceptor: (fn: (routeName: string, params: Params) => Params) => Unsubscribe;
652
653
  }
653
654
  /**
654
655
  * Routes API — for dynamic route mutation.
@@ -649,6 +649,7 @@ interface PluginApi {
649
649
  getTree: () => unknown;
650
650
  getForwardState: () => <P extends Params = Params>(routeName: string, routeParams: P) => SimpleState<P>;
651
651
  setForwardState: (fn: <P extends Params = Params>(routeName: string, routeParams: P) => SimpleState<P>) => void;
652
+ addBuildPathInterceptor: (fn: (routeName: string, params: Params) => Params) => Unsubscribe;
652
653
  }
653
654
  /**
654
655
  * Routes API — for dynamic route mutation.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@real-router/types",
3
- "version": "0.19.0",
3
+ "version": "0.20.0",
4
4
  "type": "commonjs",
5
5
  "description": "Shared TypeScript types for Real Router ecosystem",
6
6
  "types": "./dist/esm/index.d.mts",
package/src/api.ts CHANGED
@@ -82,6 +82,10 @@ export interface PluginApi {
82
82
  routeParams: P,
83
83
  ) => SimpleState<P>,
84
84
  ) => void;
85
+
86
+ addBuildPathInterceptor: (
87
+ fn: (routeName: string, params: Params) => Params,
88
+ ) => Unsubscribe;
85
89
  }
86
90
 
87
91
  /**