@kitbag/router 0.20.4 → 0.20.5

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.
@@ -7,6 +7,7 @@ import { ComputedRef } from 'vue';
7
7
  import { DefineComponent } from 'vue';
8
8
  import { FunctionalComponent } from 'vue';
9
9
  import { MaybeRefOrGetter } from 'vue';
10
+ import { PrefetchConfig as PrefetchConfig_2 } from '../types';
10
11
  import { PublicProps } from 'vue';
11
12
  import { Ref } from 'vue';
12
13
  import { StandardSchemaV1 } from '@standard-schema/spec';
@@ -976,26 +977,8 @@ declare type RouterHistoryMode = 'auto' | 'browser' | 'memory' | 'hash';
976
977
  /**
977
978
  * @hidden we don't want the criptic component types showing up in the api docs
978
979
  */
979
- export declare const RouterLink: __VLS_WithTemplateSlots_2<DefineComponent< {
980
- /**
981
- * The url string to navigate to or a callback that returns a url string
982
- */
983
- to: Url | ResolvedRoute | ToCallback;
984
- /**
985
- * Determines what assets are prefetched when router-link is rendered for this route. Overrides route level prefetch.
986
- */
987
- prefetch?: PrefetchConfig;
988
- } & RouterPushOptions, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{
989
- /**
990
- * The url string to navigate to or a callback that returns a url string
991
- */
992
- to: Url | ResolvedRoute | ToCallback;
993
- /**
994
- * Determines what assets are prefetched when router-link is rendered for this route. Overrides route level prefetch.
995
- */
996
- prefetch?: PrefetchConfig;
997
- } & RouterPushOptions> & Readonly<{}>, {
998
- prefetch: PrefetchConfig;
980
+ export declare const RouterLink: __VLS_WithTemplateSlots_2<DefineComponent<RouterLinkProps & RouterPushOptions, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<RouterLinkProps & RouterPushOptions> & Readonly<{}>, {
981
+ prefetch: PrefetchConfig_2;
999
982
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
1000
983
  element: HTMLAnchorElement;
1001
984
  }, HTMLAnchorElement>, Readonly<{
@@ -1018,6 +1001,17 @@ element: HTMLAnchorElement;
1018
1001
  }) => unknown;
1019
1002
  }>;
1020
1003
 
1004
+ export declare type RouterLinkProps = {
1005
+ /**
1006
+ * The url string to navigate to or a callback that returns a url string
1007
+ */
1008
+ to: Url | ResolvedRoute | ToCallback;
1009
+ /**
1010
+ * Determines what assets are prefetched when router-link is rendered for this route. Overrides route level prefetch.
1011
+ */
1012
+ prefetch?: PrefetchConfig;
1013
+ };
1014
+
1021
1015
  /**
1022
1016
  * An error thrown when an attempt is made to use routing functionality before the router has been installed.
1023
1017
  * @group Errors
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kitbag/router",
3
3
  "private": false,
4
- "version": "0.20.4",
4
+ "version": "0.20.5",
5
5
  "bugs": {
6
6
  "url": "https://github.com/kitbagjs/router/issues"
7
7
  },