@kitbag/router 0.22.1 → 0.22.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.
package/README.md CHANGED
@@ -20,7 +20,7 @@ Type safe router for Vue.js
20
20
 
21
21
  ## Getting Started
22
22
 
23
- Get Started with our [documentation](https://kitbag-router.netlify.app/) or our [intro video](https://kitbag-router.netlify.app/)
23
+ Get Started with our [documentation](https://kitbag-router.netlify.app/).
24
24
 
25
25
  ## Installation
26
26
 
@@ -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
  };
@@ -2,7 +2,7 @@ import { Ref, MaybeRefOrGetter, InjectionKey } from 'vue';
2
2
  import { Router } from '../types/router';
3
3
  import { Param } from '../types/paramTypes';
4
4
  import { ExtractParamType } from '../types/params';
5
- export type UseQueryValue<T> = {
5
+ type UseQueryValue<T> = {
6
6
  value: Ref<T | null>;
7
7
  values: Ref<T[]>;
8
8
  remove: () => void;
@@ -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>>;