Skip to content

Commit

Permalink
ci: apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] committed Aug 29, 2024
1 parent 3dab361 commit 689c865
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions packages/react-router/src/link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -240,11 +240,11 @@ export interface ToSubOptionsProps<
in out TFrom extends RoutePaths<TRouter['routeTree']> | string = string,
in out TTo extends string = '',
> {
to?: undefined | ToPathOption<TRouter, TFrom, TTo> & {}
to?: undefined | (ToPathOption<TRouter, TFrom, TTo> & {})
hash?: undefined | true | Updater<string>
state?: undefined | true | NonNullableUpdater<HistoryState>
// The source route path. This is automatically set when using route-level APIs, but for type-safe relative routing on the router itself, this is required
from?: undefined | FromPathOption<TRouter, TFrom> & {}
from?: undefined | (FromPathOption<TRouter, TFrom> & {})
}
export type ParamsReducerFn<
Expand Down Expand Up @@ -347,7 +347,10 @@ interface MakeOptionalSearchParams<
in out TFrom,
in out TTo,
> {
search?: undefined | true | (ParamsReducer<TRouter, 'SEARCH', TFrom, TTo> & {})
search?:
| undefined
| true
| (ParamsReducer<TRouter, 'SEARCH', TFrom, TTo> & {})
}

interface MakeOptionalPathParams<
Expand Down Expand Up @@ -870,12 +873,18 @@ export interface ActiveLinkOptionProps {
* A function that returns additional props for the `active` state of this link.
* These props override other props passed to the link (`style`'s are merged, `className`'s are concatenated)
*/
activeProps?: undefined | ActiveLinkAnchorProps | (() => ActiveLinkAnchorProps)
activeProps?:
| undefined
| ActiveLinkAnchorProps
| (() => ActiveLinkAnchorProps)
/**
* A function that returns additional props for the `inactive` state of this link.
* These props override other props passed to the link (`style`'s are merged, `className`'s are concatenated)
*/
inactiveProps?: undefined | ActiveLinkAnchorProps | (() => ActiveLinkAnchorProps)
inactiveProps?:
| undefined
| ActiveLinkAnchorProps
| (() => ActiveLinkAnchorProps)
}
export type LinkProps<
Expand Down

0 comments on commit 689c865

Please sign in to comment.