Skip to content

Commit

Permalink
Revert "Fix link types (#618)" (#621)
Browse files Browse the repository at this point in the history
This reverts commit 7a89d98.
  • Loading branch information
tannerlinsley committed Jul 6, 2023
1 parent 7a89d98 commit 9265537
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/router/src/react.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,10 @@ export type MakeLinkOptions<
TFrom extends RegisteredRoutesInfo['routePaths'] = '/',
TTo extends string = '',
> = LinkPropsOptions<TFrom, TTo> &
React.AnchorHTMLAttributes<HTMLAnchorElement> &
Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'children'> & {
// If a function is passed as a child, it will be given the `isActive` boolean to aid in further styling on the element it returns
children?:
| React.ReactNode
| ((state: { isActive: boolean }) => React.ReactNode)
children?: ReactNode | ((state: { isActive: boolean }) => ReactNode)
}

export type PromptProps = {
Expand Down

0 comments on commit 9265537

Please sign in to comment.