@tanstack/react-router
Advanced tools
Comparing version 1.46.4 to 1.46.6
@@ -119,2 +119,5 @@ import { AnyRouter, ParsedLocation } from '.'; | ||
export type ActiveLinkOptions<TRouter extends AnyRouter = RegisteredRouter, TFrom extends string = string, TTo extends string = '', TMaskFrom extends string = TFrom, TMaskTo extends string = ''> = LinkOptions<TRouter, TFrom, TTo, TMaskFrom, TMaskTo> & ActiveLinkOptionProps; | ||
type ActiveLinkAnchorProps = Omit<React.AnchorHTMLAttributes<HTMLAnchorElement> & { | ||
[key: `data-${string}`]: unknown; | ||
}, 'children'>; | ||
export interface ActiveLinkOptionProps { | ||
@@ -125,3 +128,3 @@ /** | ||
*/ | ||
activeProps?: React.AnchorHTMLAttributes<HTMLAnchorElement> | (() => React.AnchorHTMLAttributes<HTMLAnchorElement>); | ||
activeProps?: ActiveLinkAnchorProps | (() => ActiveLinkAnchorProps); | ||
/** | ||
@@ -131,3 +134,3 @@ * A function that returns additional props for the `inactive` state of this link. | ||
*/ | ||
inactiveProps?: React.AnchorHTMLAttributes<HTMLAnchorElement> | (() => React.AnchorHTMLAttributes<HTMLAnchorElement>); | ||
inactiveProps?: ActiveLinkAnchorProps | (() => ActiveLinkAnchorProps); | ||
} | ||
@@ -134,0 +137,0 @@ export type LinkProps<TRouter extends AnyRouter = RegisteredRouter, TFrom extends string = string, TTo extends string = '', TMaskFrom extends string = TFrom, TMaskTo extends string = ''> = ActiveLinkOptions<TRouter, TFrom, TTo, TMaskFrom, TMaskTo> & LinkPropsChildren; |
{ | ||
"name": "@tanstack/react-router", | ||
"version": "1.46.4", | ||
"version": "1.46.6", | ||
"description": "Modern and scalable routing for React applications", | ||
@@ -5,0 +5,0 @@ "author": "Tanner Linsley", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1423366
17828