@kitbag/router 0.17.7 → 0.18.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.
@@ -74,6 +74,7 @@ export declare type AddGlobalRouteHooks = (hooks: RouteHooks) => void;
74
74
  export declare type AfterHookContext = {
75
75
  to: ResolvedRoute;
76
76
  from: ResolvedRoute | null;
77
+ app: App | null;
77
78
  };
78
79
 
79
80
  /**
@@ -129,6 +130,7 @@ export declare function asUrl(value: string): Url;
129
130
  export declare type BeforeHookContext = {
130
131
  to: ResolvedRoute;
131
132
  from: ResolvedRoute | null;
133
+ app: App | null;
132
134
  };
133
135
 
134
136
  /**
@@ -704,7 +706,7 @@ export declare interface Register {
704
706
  * Represents the possible Rejections registered within {@link Register}
705
707
  */
706
708
  export declare type RegisteredRejectionType<T = Register> = T extends {
707
- router: Router<Routes, infer TOptions extends RouterOptions>;
709
+ router: Router<any, infer TOptions extends RouterOptions>;
708
710
  } ? keyof TOptions['rejections'] | BuiltInRejectionType : BuiltInRejectionType;
709
711
 
710
712
  /**