File tree Expand file tree Collapse file tree 1 file changed +18
-10
lines changed Expand file tree Collapse file tree 1 file changed +18
-10
lines changed Original file line number Diff line number Diff line change @@ -361,25 +361,33 @@ export const RouterLinkImpl = /*#__PURE__*/ defineComponent({
361
361
export const RouterLink : _RouterLinkI = RouterLinkImpl as any
362
362
363
363
/**
364
- * Typed version of the `RouterLink` component. Its generic defaults to the typed router, so it can be inferred
365
- * automatically for JSX.
366
- *
367
364
* @internal
368
365
*/
369
- type LinkAnchorAttrs = Omit < AnchorHTMLAttributes , 'href' >
370
-
371
366
type _BaseRouterLinkProps = AllowedComponentProps &
372
367
ComponentCustomProps &
373
368
VNodeProps &
374
369
RouterLinkProps
375
370
376
- type RouterLinkTypedProps < C extends boolean | undefined > = C extends true
377
- ? _BaseRouterLinkProps & { custom : true }
378
- : _BaseRouterLinkProps & { custom ?: false | undefined } & LinkAnchorAttrs
371
+ /**
372
+ * @internal
373
+ */
374
+ type RouterLinkTypedProps < Custom extends boolean | undefined > =
375
+ Custom extends true
376
+ ? _BaseRouterLinkProps & { custom : true }
377
+ : _BaseRouterLinkProps & { custom ?: false | undefined } & Omit <
378
+ AnchorHTMLAttributes ,
379
+ 'href'
380
+ >
379
381
382
+ /**
383
+ * Typed version of the `RouterLink` component. Its generic defaults to the typed router, so it can be inferred
384
+ * automatically for JSX.
385
+ *
386
+ * @internal
387
+ */
380
388
export interface _RouterLinkI {
381
- new < C extends boolean | undefined = boolean | undefined > ( ) : {
382
- $props : RouterLinkTypedProps < C >
389
+ new < Custom extends boolean | undefined = boolean | undefined > ( ) : {
390
+ $props : RouterLinkTypedProps < Custom >
383
391
384
392
$slots : {
385
393
default ?: ( {
You can’t perform that action at this time.
0 commit comments