@kitbag/router 0.22.1 → 0.22.2

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.
@@ -8,7 +8,7 @@ export type RouterViewProps = {
8
8
  type RouterViewSlots = {
9
9
  default?: (props: {
10
10
  route: RouterRoute;
11
- component: Component;
11
+ component: Component | null;
12
12
  rejection: UnwrapRef<RouterRejection>;
13
13
  }) => VNode;
14
14
  };
@@ -1,7 +1,5 @@
1
1
  import { InjectionKey } from 'vue';
2
- import { RouterRejection } from '../services/createRouterReject';
2
+ import { RouterRejection, RouterRejections } from '../services/createRouterReject';
3
3
  import { Router } from '../types/router';
4
4
  export declare const getRouterRejectionInjectionKey: (routerKey: InjectionKey<Router>) => InjectionKey<RouterRejection>;
5
- type UseRejectionFunction = () => RouterRejection;
6
- export declare function createUseRejection(routerKey: InjectionKey<Router>): UseRejectionFunction;
7
- export {};
5
+ export declare function createUseRejection<TRouter extends Router>(routerKey: InjectionKey<TRouter>): () => RouterRejection<RouterRejections<TRouter>>;